<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>perldiag - various Perl diagnostics - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/perldiag">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perldiag.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/perldiag">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/perldiag">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/perldiag">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/perldiag">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/perldiag">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/perldiag">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/perldiag">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/perldiag">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/perldiag">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/perldiag">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/perldiag">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/perldiag">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/perldiag">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/perldiag">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/perldiag">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/perldiag">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/perldiag">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/perldiag">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/perldiag">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/perldiag">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/perldiag">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/perldiag">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/perldiag">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/perldiag">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/perldiag">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/perldiag">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/perldiag">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/perldiag">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/perldiag">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/perldiag">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/perldiag">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/perldiag">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/perldiag">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/perldiag">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/perldiag">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/perldiag">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/perldiag">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/perldiag">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/perldiag">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/perldiag">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/perldiag">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/perldiag">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/perldiag">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/perldiag">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/perldiag">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/perldiag">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/perldiag">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/perldiag">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/perldiag">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/perldiag">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/perldiag">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/perldiag">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/perldiag">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/perldiag">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/perldiag">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/perldiag">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/perldiag">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/perldiag">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/perldiag">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/perldiag">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/perldiag">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/perldiag">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/perldiag">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/perldiag">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/perldiag">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/perldiag">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/perldiag">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/perldiag">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/perldiag">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/perldiag">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/perldiag">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/perldiag">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/perldiag">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/perldiag">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/perldiag">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/perldiag">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/perldiag">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/perldiag">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/perldiag">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/perldiag">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perldiag.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/perldiag">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/perldiag">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/perldiag">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/perldiag">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/perldiag">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/perldiag">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/perldiag">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/perldiag">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/perldiag">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/perldiag">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/perldiag">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/perldiag">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/perldiag">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/perldiag">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/perldiag">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/perldiag">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/perldiag">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/perldiag">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/perldiag">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/perldiag">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/perldiag">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/perldiag">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/perldiag">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/perldiag">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/perldiag">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/perldiag">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/perldiag">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/perldiag">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/perldiag">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/perldiag">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/perldiag">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/perldiag">5.35.1</a>
          <a class="dropdown-item active" href="perldiag.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perldiag.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="perldiag.html">perldiag</a>
          <div id="more">
            (<a href="perldiag.txt">source</a>,
            <a href="https://metacpan.org/pod/perldiag">CPAN</a>)
          </div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="perldiag.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldiag.html#DESCRIPTION">DESCRIPTION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perldiag.html#SEE-ALSO">SEE ALSO</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="perldiag.html#NAME">#</a>NAME</h1>

<p>perldiag - various Perl diagnostics</p>

<h1 id="DESCRIPTION"><a class="permalink" href="perldiag.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>These messages are classified as follows (listed in increasing order of desperation):</p>

<pre><code class="plaintext">(W) A warning (optional).
(D) A deprecation (enabled by default).
(S) A severe warning (enabled by default).
(F) A fatal error (trappable).
(P) An internal error you should never see (trappable).
(X) A very fatal error (nontrappable).
(A) An alien error message (not generated by Perl).</code></pre>

<p>The majority of messages from the first three classifications above (W, D &amp; S) can be controlled using the <code>warnings</code> pragma.</p>

<p>If a message can be controlled by the <code>warnings</code> pragma, its warning category is included with the classification letter in the description below. E.g. <code>(W closed)</code> means a warning in the <code>closed</code> category.</p>

<p>Optional warnings are enabled by using the <code>warnings</code> pragma or the <b>-w</b> and <b>-W</b> switches. Warnings may be captured by setting <code>$SIG{__WARN__}</code> to a reference to a routine that will be called on each warning instead of printing it. See <a href="perlvar.html">perlvar</a>.</p>

<p>Severe warnings are always enabled, unless they are explicitly disabled with the <code>warnings</code> pragma or the <b>-X</b> switch.</p>

<p>Trappable errors may be trapped using the eval operator. See <a href="perlfunc.html#eval">&quot;eval&quot; in perlfunc</a>. In almost all cases, warnings may be selectively disabled or promoted to fatal errors using the <code>warnings</code> pragma. See <a href="warnings.html">warnings</a>.</p>

<p>The messages are in alphabetical order, without regard to upper or lower-case. Some of these messages are generic. Spots that vary are denoted with a %s or other printf-style escape. These escapes are ignored by the alphabetical order, as are all characters other than letters. To look up your message, just ignore anything that is not a letter.</p>

<dl>

<dt id="accept()-on-closed-socket-%s"><a class="permalink" href="perldiag.html#accept()-on-closed-socket-%25s">#</a><a id="accept"></a><a id="accept-on-closed-socket-s"></a>accept() on closed socket %s</dt>
<dd>

<p>(W closed) You tried to do an accept on a closed socket. Did you forget to check the return value of your socket() call? See <a href="perlfunc.html#accept">&quot;accept&quot; in perlfunc</a>.</p>

</dd>
<dt id="Aliasing-via-reference-is-experimental"><a class="permalink" href="perldiag.html#Aliasing-via-reference-is-experimental">#</a><a id="Aliasing"></a>Aliasing via reference is experimental</dt>
<dd>

<p>(S experimental::refaliasing) This warning is emitted if you use a reference constructor on the left-hand side of an assignment to alias one variable to another. Simply suppress the warning if you want to use the feature, but know that in doing so you are taking the risk of using an experimental feature which may change or be removed in a future Perl version:</p>

<pre><code>no warnings &quot;experimental::refaliasing&quot;;
use feature &quot;refaliasing&quot;;
\$x = \$y;</code></pre>

</dd>
<dt id="Allocation-too-large:-%x"><a class="permalink" href="perldiag.html#Allocation-too-large:-%25x">#</a><a id="Allocation"></a><a id="Allocation-too-large:-x"></a>Allocation too large: %x</dt>
<dd>

<p>(X) You can&#39;t allocate more than 64K on an MS-DOS machine.</p>

</dd>
<dt id="&#39;%c&#39;-allowed-only-after-types-%s-in-%s"><a class="permalink" href="perldiag.html#&#39;%25c&#39;-allowed-only-after-types-%25s-in-%25s">#</a><a id="c-allowed-only-after-types-s-in-s"></a>&#39;%c&#39; allowed only after types %s in %s</dt>
<dd>

<p>(F) The modifiers &#39;!&#39;, &#39;&lt;&#39; and &#39;&gt;&#39; are allowed in pack() or unpack() only after certain types. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="alpha-&gt;numify()-is-lossy"><a class="permalink" href="perldiag.html#alpha-%3Enumify()-is-lossy">#</a><a id="alpha"></a><a id="alpha-numify-is-lossy"></a>alpha-&gt;numify() is lossy</dt>
<dd>

<p>(W numeric) An alpha version can not be numified without losing information.</p>

</dd>
<dt id="Ambiguous-call-resolved-as-CORE::%s(),-qualify-as-such-or-use-&amp;"><a class="permalink" href="perldiag.html#Ambiguous-call-resolved-as-CORE::%25s(),-qualify-as-such-or-use-&amp;">#</a><a id="Ambiguous"></a><a id="Ambiguous-call-resolved-as-CORE::-s-qualify-as-such-or-use"></a>Ambiguous call resolved as CORE::%s(), qualify as such or use &amp;</dt>
<dd>

<p>(W ambiguous) A subroutine you have declared has the same name as a Perl keyword, and you have used the name without qualification for calling one or the other. Perl decided to call the builtin because the subroutine is not imported.</p>

<p>To force interpretation as a subroutine call, either put an ampersand before the subroutine name, or qualify the name with its package. Alternatively, you can import the subroutine (or pretend that it&#39;s imported with the <code>use subs</code> pragma).</p>

<p>To silently interpret it as the Perl operator, use the <code>CORE::</code> prefix on the operator (e.g. <code>CORE::log($x)</code>) or declare the subroutine to be an object method (see <a href="perlsub.html#Subroutine-Attributes">&quot;Subroutine Attributes&quot; in perlsub</a> or <a href="attributes.html">attributes</a>).</p>

</dd>
<dt id="Ambiguous-range-in-transliteration-operator"><a class="permalink" href="perldiag.html#Ambiguous-range-in-transliteration-operator">#</a><a id="Ambiguous1"></a>Ambiguous range in transliteration operator</dt>
<dd>

<p>(F) You wrote something like <code>tr/a-z-0//</code> which doesn&#39;t mean anything at all. To include a <code>-</code> character in a transliteration, put it either first or last. (In the past, <code>tr/a-z-0//</code> was synonymous with <code>tr/a-y//</code>, which was probably not what you would have expected.)</p>

</dd>
<dt id="Ambiguous-use-of-%s-resolved-as-%s"><a class="permalink" href="perldiag.html#Ambiguous-use-of-%25s-resolved-as-%25s">#</a><a id="Ambiguous2"></a><a id="Ambiguous-use-of-s-resolved-as-s"></a>Ambiguous use of %s resolved as %s</dt>
<dd>

<p>(S ambiguous) You said something that may not be interpreted the way you thought. Normally it&#39;s pretty easy to disambiguate it by supplying a missing quote, operator, parenthesis pair or declaration.</p>

</dd>
<dt id="Ambiguous-use-of-%s-resolved-as-&amp;%s()"><a class="permalink" href="perldiag.html#Ambiguous-use-of-%25s-resolved-as-&amp;%25s()">#</a><a id="Ambiguous3"></a><a id="Ambiguous-use-of---s-resolved-as---s"></a>Ambiguous use of -%s resolved as -&amp;%s()</dt>
<dd>

<p>(S ambiguous) You wrote something like <code>-foo</code>, which might be the string <code>&quot;-foo&quot;</code>, or a call to the function <code>foo</code>, negated. If you meant the string, just write <code>&quot;-foo&quot;</code>. If you meant the function call, write <code>-foo()</code>.</p>

</dd>
<dt id="Ambiguous-use-of-%c-resolved-as-operator-%c"><a class="permalink" href="perldiag.html#Ambiguous-use-of-%25c-resolved-as-operator-%25c">#</a><a id="Ambiguous4"></a><a id="Ambiguous-use-of-c-resolved-as-operator-c"></a>Ambiguous use of %c resolved as operator %c</dt>
<dd>

<p>(S ambiguous) <code>%</code>, <code>&amp;</code>, and <code>*</code> are both infix operators (modulus, bitwise and, and multiplication) <i>and</i> initial special characters (denoting hashes, subroutines and typeglobs), and you said something like <code>*foo * foo</code> that might be interpreted as either of them. We assumed you meant the infix operator, but please try to make it more clear -- in the example given, you might write <code>*foo * foo()</code> if you really meant to multiply a glob by the result of calling a function.</p>

</dd>
<dt id="Ambiguous-use-of-%c{%s}-resolved-to-%c%s"><a class="permalink" href="perldiag.html#Ambiguous-use-of-%25c%7B%25s%7D-resolved-to-%25c%25s">#</a><a id="Ambiguous5"></a><a id="Ambiguous-use-of-c-s-resolved-to-c-s"></a>Ambiguous use of %c{%s} resolved to %c%s</dt>
<dd>

<p>(W ambiguous) You wrote something like <code>@{foo}</code>, which might be asking for the variable <code>@foo</code>, or it might be calling a function named foo, and dereferencing it as an array reference. If you wanted the variable, you can just write <code>@foo</code>. If you wanted to call the function, write <code>@{foo()}</code> ... or you could just not have a variable and a function with the same name, and save yourself a lot of trouble.</p>

</dd>
<dt id="Ambiguous-use-of-%c{%s[...]}-resolved-to-%c%s[...]"><a class="permalink" href="perldiag.html#Ambiguous-use-of-%25c%7B%25s%5B...%5D%7D-resolved-to-%25c%25s%5B...%5D">#</a><a id="Ambiguous6"></a><a id="Ambiguous-use-of-c-s-...-resolved-to-c-s"></a>Ambiguous use of %c{%s[...]} resolved to %c%s[...]</dt>
<dd>

</dd>
<dt id="Ambiguous-use-of-%c{%s{...}}-resolved-to-%c%s{...}"><a class="permalink" href="perldiag.html#Ambiguous-use-of-%25c%7B%25s%7B...%7D%7D-resolved-to-%25c%25s%7B...%7D">#</a><a id="Ambiguous7"></a><a id="Ambiguous-use-of-c-s-...-resolved-to-c-s1"></a>Ambiguous use of %c{%s{...}} resolved to %c%s{...}</dt>
<dd>

<p>(W ambiguous) You wrote something like <code>${foo[2]}</code> (where foo represents the name of a Perl keyword), which might be looking for element number 2 of the array named <code>@foo</code>, in which case please write <code>$foo[2]</code>, or you might have meant to pass an anonymous arrayref to the function named foo, and then do a scalar deref on the value it returns. If you meant that, write <code>${foo([2])}</code>.</p>

<p>In regular expressions, the <code>${foo[2]}</code> syntax is sometimes necessary to disambiguate between array subscripts and character classes. <code>/$length[2345]/</code>, for instance, will be interpreted as <code>$length</code> followed by the character class <code>[2345]</code>. If an array subscript is what you want, you can avoid the warning by changing <code>/${length[2345]}/</code> to the unsightly <code>/${\$length[2345]}/</code>, by renaming your array to something that does not coincide with a built-in keyword, or by simply turning off warnings with <code>no warnings &#39;ambiguous&#39;;</code>.</p>

</dd>
<dt id="&#39;|&#39;-and-&#39;&lt;&#39;-may-not-both-be-specified-on-command-line"><a class="permalink" href="perldiag.html#&#39;%7C&#39;-and-&#39;%3C&#39;-may-not-both-be-specified-on-command-line">#</a><a id="and-may-not-both-be-specified-on-command-line"></a>&#39;|&#39; and &#39;&lt;&#39; may not both be specified on command line</dt>
<dd>

<p>(F) An error peculiar to VMS. Perl does its own command line redirection, and found that STDIN was a pipe, and that you also tried to redirect STDIN using &#39;&lt;&#39;. Only one STDIN stream to a customer, please.</p>

</dd>
<dt id="&#39;|&#39;-and-&#39;&gt;&#39;-may-not-both-be-specified-on-command-line"><a class="permalink" href="perldiag.html#&#39;%7C&#39;-and-&#39;%3E&#39;-may-not-both-be-specified-on-command-line">#</a><a id="and-may-not-both-be-specified-on-command-line1"></a>&#39;|&#39; and &#39;&gt;&#39; may not both be specified on command line</dt>
<dd>

<p>(F) An error peculiar to VMS. Perl does its own command line redirection, and thinks you tried to redirect stdout both to a file and into a pipe to another command. You need to choose one or the other, though nothing&#39;s stopping you from piping into a program or Perl script which &#39;splits&#39; output into two streams, such as</p>

<pre><code>open(OUT,&quot;&gt;$ARGV[0]&quot;) or die &quot;Can&#39;t write to $ARGV[0]: $!&quot;;
while (&lt;STDIN&gt;) {
    print;
    print OUT;
}
close OUT;</code></pre>

</dd>
<dt id="Applying-%s-to-%s-will-act-on-scalar(%s)"><a class="permalink" href="perldiag.html#Applying-%25s-to-%25s-will-act-on-scalar(%25s)">#</a><a id="Applying"></a><a id="Applying-s-to-s-will-act-on-scalar-s"></a>Applying %s to %s will act on scalar(%s)</dt>
<dd>

<p>(W misc) The pattern match (<code>//</code>), substitution (<code>s///</code>), and transliteration (<code>tr///</code>) operators work on scalar values. If you apply one of them to an array or a hash, it will convert the array or hash to a scalar value (the length of an array, or the population info of a hash) and then work on that scalar value. This is probably not what you meant to do. See <a href="perlfunc.html#grep">&quot;grep&quot; in perlfunc</a> and <a href="perlfunc.html#map">&quot;map&quot; in perlfunc</a> for alternatives.</p>

</dd>
<dt id="Arg-too-short-for-msgsnd"><a class="permalink" href="perldiag.html#Arg-too-short-for-msgsnd">#</a><a id="Arg"></a>Arg too short for msgsnd</dt>
<dd>

<p>(F) msgsnd() requires a string at least as long as sizeof(long).</p>

</dd>
<dt id="Argument-&quot;%s&quot;-isn&#39;t-numeric%s"><a class="permalink" href="perldiag.html#Argument-%22%25s%22-isn&#39;t-numeric%25s">#</a><a id="Argument"></a><a id="Argument-s-isnt-numeric-s"></a>Argument &quot;%s&quot; isn&#39;t numeric%s</dt>
<dd>

<p>(W numeric) The indicated string was fed as an argument to an operator that expected a numeric value instead. If you&#39;re fortunate the message will identify which operator was so unfortunate.</p>

<p>Note that for the <code>Inf</code> and <code>NaN</code> (infinity and not-a-number) the definition of &quot;numeric&quot; is somewhat unusual: the strings themselves (like &quot;Inf&quot;) are considered numeric, and anything following them is considered non-numeric.</p>

</dd>
<dt id="Argument-list-not-closed-for-PerlIO-layer-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Argument-list-not-closed-for-PerlIO-layer-%22%25s%22">#</a><a id="Argument1"></a><a id="Argument-list-not-closed-for-PerlIO-layer-s"></a>Argument list not closed for PerlIO layer &quot;%s&quot;</dt>
<dd>

<p>(W layer) When pushing a layer with arguments onto the Perl I/O system you forgot the ) that closes the argument list. (Layers take care of transforming data between external and internal representations.) Perl stopped parsing the layer list at this point and did not attempt to push this layer. If your program didn&#39;t explicitly request the failing operation, it may be the result of the value of the environment variable PERLIO.</p>

</dd>
<dt id="Argument-&quot;%s&quot;-treated-as-0-in-increment-(++)"><a class="permalink" href="perldiag.html#Argument-%22%25s%22-treated-as-0-in-increment-(++)">#</a><a id="Argument2"></a><a id="Argument-s-treated-as-0-in-increment"></a>Argument &quot;%s&quot; treated as 0 in increment (++)</dt>
<dd>

<p>(W numeric) The indicated string was fed as an argument to the <code>++</code> operator which expects either a number or a string matching <code>/^[a-zA-Z]*[0-9]*\z/</code>. See <a href="perlop.html#Auto-increment-and-Auto-decrement">&quot;Auto-increment and Auto-decrement&quot; in perlop</a> for details.</p>

</dd>
<dt id="Array-passed-to-stat-will-be-coerced-to-a-scalar%s"><a class="permalink" href="perldiag.html#Array-passed-to-stat-will-be-coerced-to-a-scalar%25s">#</a><a id="Array"></a><a id="Array-passed-to-stat-will-be-coerced-to-a-scalar-s"></a>Array passed to stat will be coerced to a scalar%s</dt>
<dd>

<p>(W syntax) You called stat() on an array, but the array will be coerced to a scalar - the number of elements in the array.</p>

</dd>
<dt id="A-signature-parameter-must-start-with-&#39;$&#39;,-&#39;@&#39;-or-&#39;%&#39;"><a class="permalink" href="perldiag.html#A-signature-parameter-must-start-with-&#39;$&#39;,-&#39;@&#39;-or-&#39;%25&#39;">#</a><a id="A"></a><a id="A-signature-parameter-must-start-with-or"></a>A signature parameter must start with &#39;$&#39;, &#39;@&#39; or &#39;%&#39;</dt>
<dd>

<p>(F) Each subroutine signature parameter declaration must start with a valid sigil; for example:</p>

<pre><code>sub foo ($a, $, $b = 1, @c) {}</code></pre>

</dd>
<dt id="A-slurpy-parameter-may-not-have-a-default-value"><a class="permalink" href="perldiag.html#A-slurpy-parameter-may-not-have-a-default-value">#</a><a id="A1"></a>A slurpy parameter may not have a default value</dt>
<dd>

<p>(F) Only scalar subroutine signature parameters may have a default value; for example:</p>

<pre><code>sub foo ($a = 1)        {} # legal
sub foo (@a = (1))      {} # invalid
sub foo (%a = (a =&gt; b)) {} # invalid</code></pre>

</dd>
<dt id="assertion-botched:-%s"><a class="permalink" href="perldiag.html#assertion-botched:-%25s">#</a><a id="assertion"></a><a id="assertion-botched:-s"></a>assertion botched: %s</dt>
<dd>

<p>(X) The malloc package that comes with Perl had an internal failure.</p>

</dd>
<dt id="Assertion-%s-failed:-file-&quot;%s&quot;,-line-%d"><a class="permalink" href="perldiag.html#Assertion-%25s-failed:-file-%22%25s%22,-line-%25d">#</a><a id="Assertion"></a><a id="Assertion-s-failed:-file-s-line-d"></a>Assertion %s failed: file &quot;%s&quot;, line %d</dt>
<dd>

<p>(X) A general assertion failed. The file in question must be examined.</p>

</dd>
<dt id="Assigned-value-is-not-a-reference"><a class="permalink" href="perldiag.html#Assigned-value-is-not-a-reference">#</a><a id="Assigned"></a>Assigned value is not a reference</dt>
<dd>

<p>(F) You tried to assign something that was not a reference to an lvalue reference (e.g., <code>\$x = $y</code>). If you meant to make $x an alias to $y, use <code>\$x = \$y</code>.</p>

</dd>
<dt id="Assigned-value-is-not-%s-reference"><a class="permalink" href="perldiag.html#Assigned-value-is-not-%25s-reference">#</a><a id="Assigned1"></a><a id="Assigned-value-is-not-s-reference"></a>Assigned value is not %s reference</dt>
<dd>

<p>(F) You tried to assign a reference to a reference constructor, but the two references were not of the same type. You cannot alias a scalar to an array, or an array to a hash; the two types must match.</p>

<pre><code>\$x = \@y;  # error
\@x = \%y;  # error
 $y = [];
\$x = $y;   # error; did you mean \$y?</code></pre>

</dd>
<dt id="Assigning-non-zero-to-$[-is-no-longer-possible"><a class="permalink" href="perldiag.html#Assigning-non-zero-to-$%5B-is-no-longer-possible">#</a><a id="Assigning"></a><a id="Assigning-non-zero-to-is-no-longer-possible"></a>Assigning non-zero to $[ is no longer possible</dt>
<dd>

<p>(F) When the &quot;array_base&quot; feature is disabled (e.g., and under <code>use v5.16;</code>, and as of Perl 5.30) the special variable <code>$[</code>, which is deprecated, is now a fixed zero value.</p>

</dd>
<dt id="Assignment-to-both-a-list-and-a-scalar"><a class="permalink" href="perldiag.html#Assignment-to-both-a-list-and-a-scalar">#</a><a id="Assignment"></a>Assignment to both a list and a scalar</dt>
<dd>

<p>(F) If you assign to a conditional operator, the 2nd and 3rd arguments must either both be scalars or both be lists. Otherwise Perl won&#39;t know which context to supply to the right side.</p>

</dd>
<dt id="Assuming-NOT-a-POSIX-class-since-%s-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Assuming-NOT-a-POSIX-class-since-%25s-in-regex;-marked-by-in-m/%25s/">#</a><a id="Assuming-NOT-a-POSIX-class-since-%s-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Assuming"></a><a id="Assuming-NOT-a-POSIX-class-since-s-in-regex-marked-by----HERE-in-m-s"></a>Assuming NOT a POSIX class since %s in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp) You had something like these:</p>

<pre><code class="plaintext">[[:alnum]]
[[:digit:xyz]</code></pre>

<p>They look like they might have been meant to be the POSIX classes <code>[:alnum:]</code> or <code>[:digit:]</code>. If so, they should be written:</p>

<pre><code class="plaintext">[[:alnum:]]
[[:digit:]xyz]</code></pre>

<p>Since these aren&#39;t legal POSIX class specifications, but are legal bracketed character classes, Perl treats them as the latter. In the first example, it matches the characters <code>&quot;:&quot;</code>, <code>&quot;[&quot;</code>, <code>&quot;a&quot;</code>, <code>&quot;l&quot;</code>, <code>&quot;m&quot;</code>, <code>&quot;n&quot;</code>, and <code>&quot;u&quot;</code>.</p>

<p>If these weren&#39;t meant to be POSIX classes, this warning message is spurious, and can be suppressed by reordering things, such as</p>

<pre><code class="plaintext">[[al:num]]</code></pre>

<p>or</p>

<pre><code class="plaintext">[[:munla]]</code></pre>

</dd>
<dt id="&lt;&gt;-at-require-statement-should-be-quotes"><a class="permalink" href="perldiag.html#%3C%3E-at-require-statement-should-be-quotes">#</a><a id="at-require-statement-should-be-quotes"></a>&lt;&gt; at require-statement should be quotes</dt>
<dd>

<p>(F) You wrote <code>require &lt;file&gt;</code> when you should have written <code>require &#39;file&#39;</code>.</p>

</dd>
<dt id="Attempt-to-access-disallowed-key-&#39;%s&#39;-in-a-restricted-hash"><a class="permalink" href="perldiag.html#Attempt-to-access-disallowed-key-&#39;%25s&#39;-in-a-restricted-hash">#</a><a id="Attempt"></a><a id="Attempt-to-access-disallowed-key-s-in-a-restricted-hash"></a>Attempt to access disallowed key &#39;%s&#39; in a restricted hash</dt>
<dd>

<p>(F) The failing code has attempted to get or set a key which is not in the current set of allowed keys of a restricted hash.</p>

</dd>
<dt id="Attempt-to-bless-into-a-freed-package"><a class="permalink" href="perldiag.html#Attempt-to-bless-into-a-freed-package">#</a><a id="Attempt1"></a>Attempt to bless into a freed package</dt>
<dd>

<p>(F) You wrote <code>bless $foo</code> with one argument after somehow causing the current package to be freed. Perl cannot figure out what to do, so it throws up its hands in despair.</p>

</dd>
<dt id="Attempt-to-bless-into-a-reference"><a class="permalink" href="perldiag.html#Attempt-to-bless-into-a-reference">#</a><a id="Attempt2"></a>Attempt to bless into a reference</dt>
<dd>

<p>(F) The CLASSNAME argument to the bless() operator is expected to be the name of the package to bless the resulting object into. You&#39;ve supplied instead a reference to something: perhaps you wrote</p>

<pre><code>bless $self, $proto;</code></pre>

<p>when you intended</p>

<pre><code>bless $self, ref($proto) || $proto;</code></pre>

<p>If you actually want to bless into the stringified version of the reference supplied, you need to stringify it yourself, for example by:</p>

<pre><code>bless $self, &quot;$proto&quot;;</code></pre>

</dd>
<dt id="Attempt-to-clear-deleted-array"><a class="permalink" href="perldiag.html#Attempt-to-clear-deleted-array">#</a><a id="Attempt3"></a>Attempt to clear deleted array</dt>
<dd>

<p>(S debugging) An array was assigned to when it was being freed. Freed values are not supposed to be visible to Perl code. This can also happen if XS code calls <code>av_clear</code> from a custom magic callback on the array.</p>

</dd>
<dt id="Attempt-to-delete-disallowed-key-&#39;%s&#39;-from-a-restricted-hash"><a class="permalink" href="perldiag.html#Attempt-to-delete-disallowed-key-&#39;%25s&#39;-from-a-restricted-hash">#</a><a id="Attempt4"></a><a id="Attempt-to-delete-disallowed-key-s-from-a-restricted-hash"></a>Attempt to delete disallowed key &#39;%s&#39; from a restricted hash</dt>
<dd>

<p>(F) The failing code attempted to delete from a restricted hash a key which is not in its key set.</p>

</dd>
<dt id="Attempt-to-delete-readonly-key-&#39;%s&#39;-from-a-restricted-hash"><a class="permalink" href="perldiag.html#Attempt-to-delete-readonly-key-&#39;%25s&#39;-from-a-restricted-hash">#</a><a id="Attempt5"></a><a id="Attempt-to-delete-readonly-key-s-from-a-restricted-hash"></a>Attempt to delete readonly key &#39;%s&#39; from a restricted hash</dt>
<dd>

<p>(F) The failing code attempted to delete a key whose value has been declared readonly from a restricted hash.</p>

</dd>
<dt id="Attempt-to-free-non-arena-SV:-0x%x"><a class="permalink" href="perldiag.html#Attempt-to-free-non-arena-SV:-0x%25x">#</a><a id="Attempt6"></a><a id="Attempt-to-free-non-arena-SV:-0x-x"></a>Attempt to free non-arena SV: 0x%x</dt>
<dd>

<p>(S internal) All SV objects are supposed to be allocated from arenas that will be garbage collected on exit. An SV was discovered to be outside any of those arenas.</p>

</dd>
<dt id="Attempt-to-free-nonexistent-shared-string-&#39;%s&#39;%s"><a class="permalink" href="perldiag.html#Attempt-to-free-nonexistent-shared-string-&#39;%25s&#39;%25s">#</a><a id="Attempt7"></a><a id="Attempt-to-free-nonexistent-shared-string-s-s"></a>Attempt to free nonexistent shared string &#39;%s&#39;%s</dt>
<dd>

<p>(S internal) Perl maintains a reference-counted internal table of strings to optimize the storage and access of hash keys and other strings. This indicates someone tried to decrement the reference count of a string that can no longer be found in the table.</p>

</dd>
<dt id="Attempt-to-free-temp-prematurely:-SV-0x%x"><a class="permalink" href="perldiag.html#Attempt-to-free-temp-prematurely:-SV-0x%25x">#</a><a id="Attempt8"></a><a id="Attempt-to-free-temp-prematurely:-SV-0x-x"></a>Attempt to free temp prematurely: SV 0x%x</dt>
<dd>

<p>(S debugging) Mortalized values are supposed to be freed by the free_tmps() routine. This indicates that something else is freeing the SV before the free_tmps() routine gets a chance, which means that the free_tmps() routine will be freeing an unreferenced scalar when it does try to free it.</p>

</dd>
<dt id="Attempt-to-free-unreferenced-glob-pointers"><a class="permalink" href="perldiag.html#Attempt-to-free-unreferenced-glob-pointers">#</a><a id="Attempt9"></a>Attempt to free unreferenced glob pointers</dt>
<dd>

<p>(S internal) The reference counts got screwed up on symbol aliases.</p>

</dd>
<dt id="Attempt-to-free-unreferenced-scalar:-SV-0x%x"><a class="permalink" href="perldiag.html#Attempt-to-free-unreferenced-scalar:-SV-0x%25x">#</a><a id="Attempt10"></a><a id="Attempt-to-free-unreferenced-scalar:-SV-0x-x"></a>Attempt to free unreferenced scalar: SV 0x%x</dt>
<dd>

<p>(S internal) Perl went to decrement the reference count of a scalar to see if it would go to 0, and discovered that it had already gone to 0 earlier, and should have been freed, and in fact, probably was freed. This could indicate that SvREFCNT_dec() was called too many times, or that SvREFCNT_inc() was called too few times, or that the SV was mortalized when it shouldn&#39;t have been, or that memory has been corrupted.</p>

</dd>
<dt id="Attempt-to-pack-pointer-to-temporary-value"><a class="permalink" href="perldiag.html#Attempt-to-pack-pointer-to-temporary-value">#</a><a id="Attempt11"></a>Attempt to pack pointer to temporary value</dt>
<dd>

<p>(W pack) You tried to pass a temporary value (like the result of a function, or a computed expression) to the &quot;p&quot; pack() template. This means the result contains a pointer to a location that could become invalid anytime, even before the end of the current statement. Use literals or global values as arguments to the &quot;p&quot; pack() template to avoid this warning.</p>

</dd>
<dt id="Attempt-to-reload-%s-aborted."><a class="permalink" href="perldiag.html#Attempt-to-reload-%25s-aborted.">#</a><a id="Attempt12"></a><a id="Attempt-to-reload-s-aborted"></a>Attempt to reload %s aborted.</dt>
<dd>

<p>(F) You tried to load a file with <code>use</code> or <code>require</code> that failed to compile once already. Perl will not try to compile this file again unless you delete its entry from %INC. See <a href="perlfunc.html#require">&quot;require&quot; in perlfunc</a> and <a href="perlvar.html#%25INC">&quot;%INC&quot; in perlvar</a>.</p>

</dd>
<dt id="Attempt-to-set-length-of-freed-array"><a class="permalink" href="perldiag.html#Attempt-to-set-length-of-freed-array">#</a><a id="Attempt13"></a>Attempt to set length of freed array</dt>
<dd>

<p>(W misc) You tried to set the length of an array which has been freed. You can do this by storing a reference to the scalar representing the last index of an array and later assigning through that reference. For example</p>

<pre><code>$r = do {my @a; \$#a};
$$r = 503</code></pre>

</dd>
<dt id="Attempt-to-use-reference-as-lvalue-in-substr"><a class="permalink" href="perldiag.html#Attempt-to-use-reference-as-lvalue-in-substr">#</a><a id="Attempt14"></a>Attempt to use reference as lvalue in substr</dt>
<dd>

<p>(W substr) You supplied a reference as the first argument to substr() used as an lvalue, which is pretty strange. Perhaps you forgot to dereference it first. See <a href="perlfunc.html#substr">&quot;substr&quot; in perlfunc</a>.</p>

</dd>
<dt id="Attribute-prototype(%s)-discards-earlier-prototype-attribute-in-same-sub"><a class="permalink" href="perldiag.html#Attribute-prototype(%25s)-discards-earlier-prototype-attribute-in-same-sub">#</a><a id="Attribute"></a><a id="Attribute-prototype-s-discards-earlier-prototype-attribute-in-same-sub"></a>Attribute prototype(%s) discards earlier prototype attribute in same sub</dt>
<dd>

<p>(W misc) A sub was declared as sub foo : prototype(A) : prototype(B) {}, for example. Since each sub can only have one prototype, the earlier declaration(s) are discarded while the last one is applied.</p>

</dd>
<dt id="av_reify-called-on-tied-array"><a class="permalink" href="perldiag.html#av_reify-called-on-tied-array">#</a><a id="av_reify"></a>av_reify called on tied array</dt>
<dd>

<p>(S debugging) This indicates that something went wrong and Perl got <i>very</i> confused about <code>@_</code> or <code>@DB::args</code> being tied.</p>

</dd>
<dt id="Bad-arg-length-for-%s,-is-%u,-should-be-%d"><a class="permalink" href="perldiag.html#Bad-arg-length-for-%25s,-is-%25u,-should-be-%25d">#</a><a id="Bad"></a><a id="Bad-arg-length-for-s-is-u-should-be-d"></a>Bad arg length for %s, is %u, should be %d</dt>
<dd>

<p>(F) You passed a buffer of the wrong size to one of msgctl(), semctl() or shmctl(). In C parlance, the correct sizes are, respectively, <span style="white-space: nowrap;">sizeof(struct msqid_ds *)</span>, <span style="white-space: nowrap;">sizeof(struct semid_ds *)</span>, and <span style="white-space: nowrap;">sizeof(struct shmid_ds *)</span>.</p>

</dd>
<dt id="Bad-evalled-substitution-pattern"><a class="permalink" href="perldiag.html#Bad-evalled-substitution-pattern">#</a><a id="Bad1"></a>Bad evalled substitution pattern</dt>
<dd>

<p>(F) You&#39;ve used the <code>/e</code> switch to evaluate the replacement for a substitution, but perl found a syntax error in the code to evaluate, most likely an unexpected right brace &#39;}&#39;.</p>

</dd>
<dt id="Bad-filehandle:-%s"><a class="permalink" href="perldiag.html#Bad-filehandle:-%25s">#</a><a id="Bad2"></a><a id="Bad-filehandle:-s"></a>Bad filehandle: %s</dt>
<dd>

<p>(F) A symbol was passed to something wanting a filehandle, but the symbol has no filehandle associated with it. Perhaps you didn&#39;t do an open(), or did it in another package.</p>

</dd>
<dt id="Bad-free()-ignored"><a class="permalink" href="perldiag.html#Bad-free()-ignored">#</a><a id="Bad3"></a><a id="Bad-free-ignored"></a>Bad free() ignored</dt>
<dd>

<p>(S malloc) An internal routine called free() on something that had never been malloc()ed in the first place. Mandatory, but can be disabled by setting environment variable <code>PERL_BADFREE</code> to 0.</p>

<p>This message can be seen quite often with DB_File on systems with &quot;hard&quot; dynamic linking, like <code>AIX</code> and <code>OS/2</code>. It is a bug of <code>Berkeley DB</code> which is left unnoticed if <code>DB</code> uses <i>forgiving</i> system malloc().</p>

</dd>
<dt id="Bad-hash"><a class="permalink" href="perldiag.html#Bad-hash">#</a><a id="Bad4"></a>Bad hash</dt>
<dd>

<p>(P) One of the internal hash routines was passed a null HV pointer.</p>

</dd>
<dt id="Badly-placed-()&#39;s"><a class="permalink" href="perldiag.html#Badly-placed-()&#39;s">#</a><a id="Badly"></a><a id="Badly-placed-s"></a>Badly placed ()&#39;s</dt>
<dd>

<p>(A) You&#39;ve accidentally run your script through <b>csh</b> instead of Perl. Check the #! line, or manually feed your script into Perl yourself.</p>

</dd>
<dt id="Bad-name-after-%s"><a class="permalink" href="perldiag.html#Bad-name-after-%25s">#</a><a id="Bad5"></a><a id="Bad-name-after-s"></a>Bad name after %s</dt>
<dd>

<p>(F) You started to name a symbol by using a package prefix, and then didn&#39;t finish the symbol. In particular, you can&#39;t interpolate outside of quotes, so</p>

<pre><code>$var = &#39;myvar&#39;;
$sym = mypack::$var;</code></pre>

<p>is not the same as</p>

<pre><code>$var = &#39;myvar&#39;;
$sym = &quot;mypack::$var&quot;;</code></pre>

</dd>
<dt id="Bad-plugin-affecting-keyword-&#39;%s&#39;"><a class="permalink" href="perldiag.html#Bad-plugin-affecting-keyword-&#39;%25s&#39;">#</a><a id="Bad6"></a><a id="Bad-plugin-affecting-keyword-s"></a>Bad plugin affecting keyword &#39;%s&#39;</dt>
<dd>

<p>(F) An extension using the keyword plugin mechanism violated the plugin API.</p>

</dd>
<dt id="Bad-realloc()-ignored"><a class="permalink" href="perldiag.html#Bad-realloc()-ignored">#</a><a id="Bad7"></a><a id="Bad-realloc-ignored"></a>Bad realloc() ignored</dt>
<dd>

<p>(S malloc) An internal routine called realloc() on something that had never been malloc()ed in the first place. Mandatory, but can be disabled by setting the environment variable <code>PERL_BADFREE</code> to 1.</p>

</dd>
<dt id="Bad-symbol-for-array"><a class="permalink" href="perldiag.html#Bad-symbol-for-array">#</a><a id="Bad8"></a>Bad symbol for array</dt>
<dd>

<p>(P) An internal request asked to add an array entry to something that wasn&#39;t a symbol table entry.</p>

</dd>
<dt id="Bad-symbol-for-dirhandle"><a class="permalink" href="perldiag.html#Bad-symbol-for-dirhandle">#</a><a id="Bad9"></a>Bad symbol for dirhandle</dt>
<dd>

<p>(P) An internal request asked to add a dirhandle entry to something that wasn&#39;t a symbol table entry.</p>

</dd>
<dt id="Bad-symbol-for-filehandle"><a class="permalink" href="perldiag.html#Bad-symbol-for-filehandle">#</a><a id="Bad10"></a>Bad symbol for filehandle</dt>
<dd>

<p>(P) An internal request asked to add a filehandle entry to something that wasn&#39;t a symbol table entry.</p>

</dd>
<dt id="Bad-symbol-for-hash"><a class="permalink" href="perldiag.html#Bad-symbol-for-hash">#</a><a id="Bad11"></a>Bad symbol for hash</dt>
<dd>

<p>(P) An internal request asked to add a hash entry to something that wasn&#39;t a symbol table entry.</p>

</dd>
<dt id="Bad-symbol-for-scalar"><a class="permalink" href="perldiag.html#Bad-symbol-for-scalar">#</a><a id="Bad12"></a>Bad symbol for scalar</dt>
<dd>

<p>(P) An internal request asked to add a scalar entry to something that wasn&#39;t a symbol table entry.</p>

</dd>
<dt id="Bareword-found-in-conditional"><a class="permalink" href="perldiag.html#Bareword-found-in-conditional">#</a><a id="Bareword"></a>Bareword found in conditional</dt>
<dd>

<p>(W bareword) The compiler found a bareword where it expected a conditional, which often indicates that an || or &amp;&amp; was parsed as part of the last argument of the previous construct, for example:</p>

<pre><code>open FOO || die;</code></pre>

<p>It may also indicate a misspelled constant that has been interpreted as a bareword:</p>

<pre><code>use constant TYPO =&gt; 1;
if (TYOP) { print &quot;foo&quot; }</code></pre>

<p>The <code>strict</code> pragma is useful in avoiding such errors.</p>

</dd>
<dt id="Bareword-in-require-contains-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Bareword-in-require-contains-%22%25s%22">#</a><a id="Bareword1"></a><a id="Bareword-in-require-contains-s"></a>Bareword in require contains &quot;%s&quot;</dt>
<dd>

</dd>
<dt id="Bareword-in-require-maps-to-disallowed-filename-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Bareword-in-require-maps-to-disallowed-filename-%22%25s%22">#</a><a id="Bareword2"></a><a id="Bareword-in-require-maps-to-disallowed-filename-s"></a>Bareword in require maps to disallowed filename &quot;%s&quot;</dt>
<dd>

</dd>
<dt id="Bareword-in-require-maps-to-empty-filename"><a class="permalink" href="perldiag.html#Bareword-in-require-maps-to-empty-filename">#</a><a id="Bareword3"></a>Bareword in require maps to empty filename</dt>
<dd>

<p>(F) The bareword form of require has been invoked with a filename which could not have been generated by a valid bareword permitted by the parser. You shouldn&#39;t be able to get this error from Perl code, but XS code may throw it if it passes an invalid module name to <code>Perl_load_module</code>.</p>

</dd>
<dt id="Bareword-in-require-must-not-start-with-a-double-colon:-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Bareword-in-require-must-not-start-with-a-double-colon:-%22%25s%22">#</a><a id="Bareword4"></a><a id="Bareword-in-require-must-not-start-with-a-double-colon:-s"></a>Bareword in require must not start with a double-colon: &quot;%s&quot;</dt>
<dd>

<p>(F) In <code>require Bare::Word</code>, the bareword is not allowed to start with a double-colon. Write <code>require ::Foo::Bar</code> as <code>require Foo::Bar</code> instead.</p>

</dd>
<dt id="Bareword-&quot;%s&quot;-not-allowed-while-&quot;strict-subs&quot;-in-use"><a class="permalink" href="perldiag.html#Bareword-%22%25s%22-not-allowed-while-%22strict-subs%22-in-use">#</a><a id="Bareword5"></a><a id="Bareword-s-not-allowed-while-strict-subs-in-use"></a>Bareword &quot;%s&quot; not allowed while &quot;strict subs&quot; in use</dt>
<dd>

<p>(F) With &quot;strict subs&quot; in use, a bareword is only allowed as a subroutine identifier, in curly brackets or to the left of the &quot;=&gt;&quot; symbol. Perhaps you need to predeclare a subroutine?</p>

</dd>
<dt id="Bareword-&quot;%s&quot;-refers-to-nonexistent-package"><a class="permalink" href="perldiag.html#Bareword-%22%25s%22-refers-to-nonexistent-package">#</a><a id="Bareword6"></a><a id="Bareword-s-refers-to-nonexistent-package"></a>Bareword &quot;%s&quot; refers to nonexistent package</dt>
<dd>

<p>(W bareword) You used a qualified bareword of the form <code>Foo::</code>, but the compiler saw no other uses of that namespace before that point. Perhaps you need to predeclare a package?</p>

</dd>
<dt id="Bareword-filehandle-&quot;%s&quot;-not-allowed-under-&#39;no-feature-&quot;bareword_filehandles&quot;&#39;"><a class="permalink" href="perldiag.html#Bareword-filehandle-%22%25s%22-not-allowed-under-&#39;no-feature-%22bareword_filehandles%22&#39;">#</a><a id="Bareword7"></a><a id="Bareword-filehandle-s-not-allowed-under-no-feature-bareword_filehandles"></a>Bareword filehandle &quot;%s&quot; not allowed under &#39;no feature &quot;bareword_filehandles&quot;&#39;</dt>
<dd>

<p>(F) You attempted to use a bareword filehandle with the <code>bareword_filehandles</code> feature disabled.</p>

<p>Only the built-in handles <code>STDIN</code>, <code>STDOUT</code>, <code>STDERR</code>, <code>ARGV</code>, <code>ARGVOUT</code> and <code>DATA</code> can be used with the <code>bareword_filehandles</code> feature disabled.</p>

</dd>
<dt id="BEGIN-failed-compilation-aborted"><a class="permalink" href="perldiag.html#BEGIN-failed-compilation-aborted">#</a><a id="BEGIN"></a><a id="BEGIN-failed--compilation-aborted"></a>BEGIN failed--compilation aborted</dt>
<dd>

<p>(F) An untrapped exception was raised while executing a BEGIN subroutine. Compilation stops immediately and the interpreter is exited.</p>

</dd>
<dt id="BEGIN-not-safe-after-errors-compilation-aborted"><a class="permalink" href="perldiag.html#BEGIN-not-safe-after-errors-compilation-aborted">#</a><a id="BEGIN1"></a><a id="BEGIN-not-safe-after-errors--compilation-aborted"></a>BEGIN not safe after errors--compilation aborted</dt>
<dd>

<p>(F) Perl found a <code>BEGIN {}</code> subroutine (or a <code>use</code> directive, which implies a <code>BEGIN {}</code>) after one or more compilation errors had already occurred. Since the intended environment for the <code>BEGIN {}</code> could not be guaranteed (due to the errors), and since subsequent code likely depends on its correct operation, Perl just gave up.</p>

</dd>
<dt id="\%d-better-written-as-$%d"><a class="permalink" href="perldiag.html#%5C%25d-better-written-as-$%25d">#</a><a id="d-better-written-as-d"></a>\%d better written as $%d</dt>
<dd>

<p>(W syntax) Outside of patterns, backreferences live on as variables. The use of backslashes is grandfathered on the right-hand side of a substitution, but stylistically it&#39;s better to use the variable form because other Perl programmers will expect it, and it works better if there are more than 9 backreferences.</p>

</dd>
<dt id="Binary-number-&gt;-0b11111111111111111111111111111111-non-portable"><a class="permalink" href="perldiag.html#Binary-number-%3E-0b11111111111111111111111111111111-non-portable">#</a><a id="Binary"></a><a id="Binary-number-0b11111111111111111111111111111111-non-portable"></a>Binary number &gt; 0b11111111111111111111111111111111 non-portable</dt>
<dd>

<p>(W portable) The binary number you specified is larger than 2**32-1 (4294967295) and therefore non-portable between systems. See <a href="perlport.html">perlport</a> for more on portability concerns.</p>

</dd>
<dt id="bind()-on-closed-socket-%s"><a class="permalink" href="perldiag.html#bind()-on-closed-socket-%25s">#</a><a id="bind"></a><a id="bind-on-closed-socket-s"></a>bind() on closed socket %s</dt>
<dd>

<p>(W closed) You tried to do a bind on a closed socket. Did you forget to check the return value of your socket() call? See <a href="perlfunc.html#bind">&quot;bind&quot; in perlfunc</a>.</p>

</dd>
<dt id="binmode()-on-closed-filehandle-%s"><a class="permalink" href="perldiag.html#binmode()-on-closed-filehandle-%25s">#</a><a id="binmode"></a><a id="binmode-on-closed-filehandle-s"></a>binmode() on closed filehandle %s</dt>
<dd>

<p>(W unopened) You tried binmode() on a filehandle that was never opened. Check your control flow and number of arguments.</p>

</dd>
<dt id="Bit-vector-size-&gt;-32-non-portable"><a class="permalink" href="perldiag.html#Bit-vector-size-%3E-32-non-portable">#</a><a id="Bit"></a><a id="Bit-vector-size-32-non-portable"></a>Bit vector size &gt; 32 non-portable</dt>
<dd>

<p>(W portable) Using bit vector sizes larger than 32 is non-portable.</p>

</dd>
<dt id="Bizarre-copy-of-%s"><a class="permalink" href="perldiag.html#Bizarre-copy-of-%25s">#</a><a id="Bizarre"></a><a id="Bizarre-copy-of-s"></a>Bizarre copy of %s</dt>
<dd>

<p>(P) Perl detected an attempt to copy an internal value that is not copiable.</p>

</dd>
<dt id="Bizarre-SvTYPE-[%d]"><a class="permalink" href="perldiag.html#Bizarre-SvTYPE-%5B%25d%5D">#</a><a id="Bizarre1"></a><a id="Bizarre-SvTYPE-d"></a>Bizarre SvTYPE [%d]</dt>
<dd>

<p>(P) When starting a new thread or returning values from a thread, Perl encountered an invalid data type.</p>

</dd>
<dt id="Both-or-neither-range-ends-should-be-Unicode-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Both-or-neither-range-ends-should-be-Unicode-in-regex;-marked-by-in-m/%25s/">#</a><a id="Both-or-neither-range-ends-should-be-Unicode-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Both"></a><a id="Both-or-neither-range-ends-should-be-Unicode-in-regex-marked-by----HERE-in-m-s"></a>Both or neither range ends should be Unicode in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp) (only under <code><span style="white-space: nowrap;">use re &#39;strict&#39;</span></code> or within <code>(?[...])</code>)</p>

<p>In a bracketed character class in a regular expression pattern, you had a range which has exactly one end of it specified using <code>\N{}</code>, and the other end is specified using a non-portable mechanism. Perl treats the range as a Unicode range, that is, all the characters in it are considered to be the Unicode characters, and which may be different code points on some platforms Perl runs on. For example, <code>[\N{U+06}-\x08]</code> is treated as if you had instead said <code>[\N{U+06}-\N{U+08}]</code>, that is it matches the characters whose code points in Unicode are 6, 7, and 8. But that <code>\x08</code> might indicate that you meant something different, so the warning gets raised.</p>

</dd>
<dt id="Buffer-overflow-in-prime_env_iter:-%s"><a class="permalink" href="perldiag.html#Buffer-overflow-in-prime_env_iter:-%25s">#</a><a id="Buffer"></a><a id="Buffer-overflow-in-prime_env_iter:-s"></a>Buffer overflow in prime_env_iter: %s</dt>
<dd>

<p>(W internal) A warning peculiar to VMS. While Perl was preparing to iterate over %ENV, it encountered a logical name or symbol definition which was too long, so it was truncated to the string shown.</p>

</dd>
<dt id="Callback-called-exit"><a class="permalink" href="perldiag.html#Callback-called-exit">#</a><a id="Callback"></a>Callback called exit</dt>
<dd>

<p>(F) A subroutine invoked from an external package via call_sv() exited by calling exit.</p>

</dd>
<dt id="%s()-called-too-early-to-check-prototype"><a class="permalink" href="perldiag.html#%25s()-called-too-early-to-check-prototype">#</a><a id="s-called-too-early-to-check-prototype"></a>%s() called too early to check prototype</dt>
<dd>

<p>(W prototype) You&#39;ve called a function that has a prototype before the parser saw a definition or declaration for it, and Perl could not check that the call conforms to the prototype. You need to either add an early prototype declaration for the subroutine in question, or move the subroutine definition ahead of the call to get proper prototype checking. Alternatively, if you are certain that you&#39;re calling the function correctly, you may put an ampersand before the name to avoid the warning. See <a href="perlsub.html">perlsub</a>.</p>

</dd>
<dt id="Cannot-chr-%f"><a class="permalink" href="perldiag.html#Cannot-chr-%25f">#</a><a id="Cannot"></a><a id="Cannot-chr-f"></a>Cannot chr %f</dt>
<dd>

<p>(F) You passed an invalid number (like an infinity or not-a-number) to <code>chr</code>.</p>

</dd>
<dt id="Cannot-complete-in-place-edit-of-%s:-%s"><a class="permalink" href="perldiag.html#Cannot-complete-in-place-edit-of-%25s:-%25s">#</a><a id="Cannot1"></a><a id="Cannot-complete-in-place-edit-of-s:-s"></a>Cannot complete in-place edit of %s: %s</dt>
<dd>

<p>(F) Your perl script appears to have changed directory while performing an in-place edit of a file specified by a relative path, and your system doesn&#39;t include the directory relative POSIX functions needed to handle that.</p>

</dd>
<dt id="Cannot-compress-%f-in-pack"><a class="permalink" href="perldiag.html#Cannot-compress-%25f-in-pack">#</a><a id="Cannot2"></a><a id="Cannot-compress-f-in-pack"></a>Cannot compress %f in pack</dt>
<dd>

<p>(F) You tried compressing an infinity or not-a-number as an unsigned integer with BER, which makes no sense.</p>

</dd>
<dt id="Cannot-compress-integer-in-pack"><a class="permalink" href="perldiag.html#Cannot-compress-integer-in-pack">#</a><a id="Cannot3"></a>Cannot compress integer in pack</dt>
<dd>

<p>(F) An argument to pack(&quot;w&quot;,...) was too large to compress. The BER compressed integer format can only be used with positive integers, and you attempted to compress a very large number (&gt; 1e308). See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="Cannot-compress-negative-numbers-in-pack"><a class="permalink" href="perldiag.html#Cannot-compress-negative-numbers-in-pack">#</a><a id="Cannot4"></a>Cannot compress negative numbers in pack</dt>
<dd>

<p>(F) An argument to pack(&quot;w&quot;,...) was negative. The BER compressed integer format can only be used with positive integers. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="Cannot-convert-a-reference-to-%s-to-typeglob"><a class="permalink" href="perldiag.html#Cannot-convert-a-reference-to-%25s-to-typeglob">#</a><a id="Cannot5"></a><a id="Cannot-convert-a-reference-to-s-to-typeglob"></a>Cannot convert a reference to %s to typeglob</dt>
<dd>

<p>(F) You manipulated Perl&#39;s symbol table directly, stored a reference in it, then tried to access that symbol via conventional Perl syntax. The access triggers Perl to autovivify that typeglob, but it there is no legal conversion from that type of reference to a typeglob.</p>

</dd>
<dt id="Cannot-copy-to-%s"><a class="permalink" href="perldiag.html#Cannot-copy-to-%25s">#</a><a id="Cannot6"></a><a id="Cannot-copy-to-s"></a>Cannot copy to %s</dt>
<dd>

<p>(P) Perl detected an attempt to copy a value to an internal type that cannot be directly assigned to.</p>

</dd>
<dt id="Cannot-find-encoding-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Cannot-find-encoding-%22%25s%22">#</a><a id="Cannot7"></a><a id="Cannot-find-encoding-s"></a>Cannot find encoding &quot;%s&quot;</dt>
<dd>

<p>(S io) You tried to apply an encoding that did not exist to a filehandle, either with open() or binmode().</p>

</dd>
<dt id="Cannot-open-%s-as-a-dirhandle:-it-is-already-open-as-a-filehandle"><a class="permalink" href="perldiag.html#Cannot-open-%25s-as-a-dirhandle:-it-is-already-open-as-a-filehandle">#</a><a id="Cannot8"></a><a id="Cannot-open-s-as-a-dirhandle:-it-is-already-open-as-a-filehandle"></a>Cannot open %s as a dirhandle: it is already open as a filehandle</dt>
<dd>

<p>(F) You tried to use opendir() to associate a dirhandle to a symbol (glob or scalar) that already holds a filehandle. Since this idiom might render your code confusing, it was deprecated in Perl 5.10. As of Perl 5.28, it is a fatal error.</p>

</dd>
<dt id="Cannot-open-%s-as-a-filehandle:-it-is-already-open-as-a-dirhandle"><a class="permalink" href="perldiag.html#Cannot-open-%25s-as-a-filehandle:-it-is-already-open-as-a-dirhandle">#</a><a id="Cannot9"></a><a id="Cannot-open-s-as-a-filehandle:-it-is-already-open-as-a-dirhandle"></a>Cannot open %s as a filehandle: it is already open as a dirhandle</dt>
<dd>

<p>(F) You tried to use open() to associate a filehandle to a symbol (glob or scalar) that already holds a dirhandle. Since this idiom might render your code confusing, it was deprecated in Perl 5.10. As of Perl 5.28, it is a fatal error.</p>

</dd>
<dt id="Cannot-pack-%f-with-&#39;%c&#39;"><a class="permalink" href="perldiag.html#Cannot-pack-%25f-with-&#39;%25c&#39;">#</a><a id="Cannot10"></a><a id="Cannot-pack-f-with-c"></a>Cannot pack %f with &#39;%c&#39;</dt>
<dd>

<p>(F) You tried converting an infinity or not-a-number to an integer, which makes no sense.</p>

</dd>
<dt id="Cannot-printf-%f-with-&#39;%c&#39;"><a class="permalink" href="perldiag.html#Cannot-printf-%25f-with-&#39;%25c&#39;">#</a><a id="Cannot11"></a><a id="Cannot-printf-f-with-c"></a>Cannot printf %f with &#39;%c&#39;</dt>
<dd>

<p>(F) You tried printing an infinity or not-a-number as a character (%c), which makes no sense. Maybe you meant &#39;%s&#39;, or just stringifying it?</p>

</dd>
<dt id="Cannot-set-tied-@DB::args"><a class="permalink" href="perldiag.html#Cannot-set-tied-@DB::args">#</a><a id="Cannot12"></a><a id="Cannot-set-tied-DB::args"></a>Cannot set tied @DB::args</dt>
<dd>

<p>(F) <code>caller</code> tried to set <code>@DB::args</code>, but found it tied. Tying <code>@DB::args</code> is not supported. (Before this error was added, it used to crash.)</p>

</dd>
<dt id="Cannot-tie-unreifiable-array"><a class="permalink" href="perldiag.html#Cannot-tie-unreifiable-array">#</a><a id="Cannot13"></a>Cannot tie unreifiable array</dt>
<dd>

<p>(P) You somehow managed to call <code>tie</code> on an array that does not keep a reference count on its arguments and cannot be made to do so. Such arrays are not even supposed to be accessible to Perl code, but are only used internally.</p>

</dd>
<dt id="Cannot-yet-reorder-sv_vcatpvfn()-arguments-from-va_list"><a class="permalink" href="perldiag.html#Cannot-yet-reorder-sv_vcatpvfn()-arguments-from-va_list">#</a><a id="Cannot14"></a><a id="Cannot-yet-reorder-sv_vcatpvfn-arguments-from-va_list"></a>Cannot yet reorder sv_vcatpvfn() arguments from va_list</dt>
<dd>

<p>(F) Some XS code tried to use <code>sv_vcatpvfn()</code> or a related function with a format string that specifies explicit indexes for some of the elements, and using a C-style variable-argument list (a <code>va_list</code>). This is not currently supported. XS authors wanting to do this must instead construct a C array of <code>SV*</code> scalars containing the arguments.</p>

</dd>
<dt id="Can-only-compress-unsigned-integers-in-pack"><a class="permalink" href="perldiag.html#Can-only-compress-unsigned-integers-in-pack">#</a><a id="Can"></a>Can only compress unsigned integers in pack</dt>
<dd>

<p>(F) An argument to pack(&quot;w&quot;,...) was not an integer. The BER compressed integer format can only be used with positive integers, and you attempted to compress something else. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="Can&#39;t-bless-non-reference-value"><a class="permalink" href="perldiag.html#Can&#39;t-bless-non-reference-value">#</a><a id="Can1"></a><a id="Cant-bless-non-reference-value"></a>Can&#39;t bless non-reference value</dt>
<dd>

<p>(F) Only hard references may be blessed. This is how Perl &quot;enforces&quot; encapsulation of objects. See <a href="perlobj.html">perlobj</a>.</p>

</dd>
<dt id="Can&#39;t-&quot;break&quot;-in-a-loop-topicalizer"><a class="permalink" href="perldiag.html#Can&#39;t-%22break%22-in-a-loop-topicalizer">#</a><a id="Can2"></a><a id="Cant-break-in-a-loop-topicalizer"></a>Can&#39;t &quot;break&quot; in a loop topicalizer</dt>
<dd>

<p>(F) You called <code>break</code>, but you&#39;re in a <code>foreach</code> block rather than a <code>given</code> block. You probably meant to use <code>next</code> or <code>last</code>.</p>

</dd>
<dt id="Can&#39;t-&quot;break&quot;-outside-a-given-block"><a class="permalink" href="perldiag.html#Can&#39;t-%22break%22-outside-a-given-block">#</a><a id="Can3"></a><a id="Cant-break-outside-a-given-block"></a>Can&#39;t &quot;break&quot; outside a given block</dt>
<dd>

<p>(F) You called <code>break</code>, but you&#39;re not inside a <code>given</code> block.</p>

</dd>
<dt id="Can&#39;t-call-method-&quot;%s&quot;-on-an-undefined-value"><a class="permalink" href="perldiag.html#Can&#39;t-call-method-%22%25s%22-on-an-undefined-value">#</a><a id="Can4"></a><a id="Cant-call-method-s-on-an-undefined-value"></a>Can&#39;t call method &quot;%s&quot; on an undefined value</dt>
<dd>

<p>(F) You used the syntax of a method call, but the slot filled by the object reference or package name contains an undefined value. Something like this will reproduce the error:</p>

<pre><code>$BADREF = undef;
process $BADREF 1,2,3;
$BADREF-&gt;process(1,2,3);</code></pre>

</dd>
<dt id="Can&#39;t-call-method-&quot;%s&quot;-on-unblessed-reference"><a class="permalink" href="perldiag.html#Can&#39;t-call-method-%22%25s%22-on-unblessed-reference">#</a><a id="Can5"></a><a id="Cant-call-method-s-on-unblessed-reference"></a>Can&#39;t call method &quot;%s&quot; on unblessed reference</dt>
<dd>

<p>(F) A method call must know in what package it&#39;s supposed to run. It ordinarily finds this out from the object reference you supply, but you didn&#39;t supply an object reference in this case. A reference isn&#39;t an object reference until it has been blessed. See <a href="perlobj.html">perlobj</a>.</p>

</dd>
<dt id="Can&#39;t-call-method-&quot;%s&quot;-without-a-package-or-object-reference"><a class="permalink" href="perldiag.html#Can&#39;t-call-method-%22%25s%22-without-a-package-or-object-reference">#</a><a id="Can6"></a><a id="Cant-call-method-s-without-a-package-or-object-reference"></a>Can&#39;t call method &quot;%s&quot; without a package or object reference</dt>
<dd>

<p>(F) You used the syntax of a method call, but the slot filled by the object reference or package name contains an expression that returns a defined value which is neither an object reference nor a package name. Something like this will reproduce the error:</p>

<pre><code>$BADREF = 42;
process $BADREF 1,2,3;
$BADREF-&gt;process(1,2,3);</code></pre>

</dd>
<dt id="Can&#39;t-call-mro_isa_changed_in()-on-anonymous-symbol-table"><a class="permalink" href="perldiag.html#Can&#39;t-call-mro_isa_changed_in()-on-anonymous-symbol-table">#</a><a id="Can7"></a><a id="Cant-call-mro_isa_changed_in-on-anonymous-symbol-table"></a>Can&#39;t call mro_isa_changed_in() on anonymous symbol table</dt>
<dd>

<p>(P) Perl got confused as to whether a hash was a plain hash or a symbol table hash when trying to update @ISA caches.</p>

</dd>
<dt id="Can&#39;t-call-mro_method_changed_in()-on-anonymous-symbol-table"><a class="permalink" href="perldiag.html#Can&#39;t-call-mro_method_changed_in()-on-anonymous-symbol-table">#</a><a id="Can8"></a><a id="Cant-call-mro_method_changed_in-on-anonymous-symbol-table"></a>Can&#39;t call mro_method_changed_in() on anonymous symbol table</dt>
<dd>

<p>(F) An XS module tried to call <code>mro_method_changed_in</code> on a hash that was not attached to the symbol table.</p>

</dd>
<dt id="Can&#39;t-chdir-to-%s"><a class="permalink" href="perldiag.html#Can&#39;t-chdir-to-%25s">#</a><a id="Can9"></a><a id="Cant-chdir-to-s"></a>Can&#39;t chdir to %s</dt>
<dd>

<p>(F) You called <code>perl -x/foo/bar</code>, but <i>/foo/bar</i> is not a directory that you can chdir to, possibly because it doesn&#39;t exist.</p>

</dd>
<dt id="Can&#39;t-check-filesystem-of-script-&quot;%s&quot;-for-nosuid"><a class="permalink" href="perldiag.html#Can&#39;t-check-filesystem-of-script-%22%25s%22-for-nosuid">#</a><a id="Can10"></a><a id="Cant-check-filesystem-of-script-s-for-nosuid"></a>Can&#39;t check filesystem of script &quot;%s&quot; for nosuid</dt>
<dd>

<p>(P) For some reason you can&#39;t check the filesystem of the script for nosuid.</p>

</dd>
<dt id="Can&#39;t-coerce-%s-to-%s-in-%s"><a class="permalink" href="perldiag.html#Can&#39;t-coerce-%25s-to-%25s-in-%25s">#</a><a id="Can11"></a><a id="Cant-coerce-s-to-s-in-s"></a>Can&#39;t coerce %s to %s in %s</dt>
<dd>

<p>(F) Certain types of SVs, in particular real symbol table entries (typeglobs), can&#39;t be forced to stop being what they are. So you can&#39;t say things like:</p>

<pre><code>*foo += 1;</code></pre>

<p>You CAN say</p>

<pre><code>$foo = *foo;
$foo += 1;</code></pre>

<p>but then $foo no longer contains a glob.</p>

</dd>
<dt id="Can&#39;t-&quot;continue&quot;-outside-a-when-block"><a class="permalink" href="perldiag.html#Can&#39;t-%22continue%22-outside-a-when-block">#</a><a id="Can12"></a><a id="Cant-continue-outside-a-when-block"></a>Can&#39;t &quot;continue&quot; outside a when block</dt>
<dd>

<p>(F) You called <code>continue</code>, but you&#39;re not inside a <code>when</code> or <code>default</code> block.</p>

</dd>
<dt id="Can&#39;t-create-pipe-mailbox"><a class="permalink" href="perldiag.html#Can&#39;t-create-pipe-mailbox">#</a><a id="Can13"></a><a id="Cant-create-pipe-mailbox"></a>Can&#39;t create pipe mailbox</dt>
<dd>

<p>(P) An error peculiar to VMS. The process is suffering from exhausted quotas or other plumbing problems.</p>

</dd>
<dt id="Can&#39;t-declare-%s-in-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Can&#39;t-declare-%25s-in-%22%25s%22">#</a><a id="Can14"></a><a id="Cant-declare-s-in-s"></a>Can&#39;t declare %s in &quot;%s&quot;</dt>
<dd>

<p>(F) Only scalar, array, and hash variables may be declared as &quot;my&quot;, &quot;our&quot; or &quot;state&quot; variables. They must have ordinary identifiers as names.</p>

</dd>
<dt id="Can&#39;t-&quot;default&quot;-outside-a-topicalizer"><a class="permalink" href="perldiag.html#Can&#39;t-%22default%22-outside-a-topicalizer">#</a><a id="Can15"></a><a id="Cant-default-outside-a-topicalizer"></a>Can&#39;t &quot;default&quot; outside a topicalizer</dt>
<dd>

<p>(F) You have used a <code>default</code> block that is neither inside a <code>foreach</code> loop nor a <code>given</code> block. (Note that this error is issued on exit from the <code>default</code> block, so you won&#39;t get the error if you use an explicit <code>continue</code>.)</p>

</dd>
<dt id="Can&#39;t-determine-class-of-operator-%s,-assuming-BASEOP"><a class="permalink" href="perldiag.html#Can&#39;t-determine-class-of-operator-%25s,-assuming-BASEOP">#</a><a id="Can16"></a><a id="Cant-determine-class-of-operator-s-assuming-BASEOP"></a>Can&#39;t determine class of operator %s, assuming BASEOP</dt>
<dd>

<p>(S) This warning indicates something wrong in the internals of perl. Perl was trying to find the class (e.g. LISTOP) of a particular OP, and was unable to do so. This is likely to be due to a bug in the perl internals, or due to a bug in XS code which manipulates perl optrees.</p>

</dd>
<dt id="Can&#39;t-do-inplace-edit:-%s-is-not-a-regular-file"><a class="permalink" href="perldiag.html#Can&#39;t-do-inplace-edit:-%25s-is-not-a-regular-file">#</a><a id="Can17"></a><a id="Cant-do-inplace-edit:-s-is-not-a-regular-file"></a>Can&#39;t do inplace edit: %s is not a regular file</dt>
<dd>

<p>(S inplace) You tried to use the <b>-i</b> switch on a special file, such as a file in /dev, a FIFO or an uneditable directory. The file was ignored.</p>

</dd>
<dt id="Can&#39;t-do-inplace-edit-on-%s:-%s"><a class="permalink" href="perldiag.html#Can&#39;t-do-inplace-edit-on-%25s:-%25s">#</a><a id="Can18"></a><a id="Cant-do-inplace-edit-on-s:-s"></a>Can&#39;t do inplace edit on %s: %s</dt>
<dd>

<p>(S inplace) The creation of the new file failed for the indicated reason.</p>

</dd>
<dt id="Can&#39;t-do-inplace-edit:-%s-would-not-be-unique"><a class="permalink" href="perldiag.html#Can&#39;t-do-inplace-edit:-%25s-would-not-be-unique">#</a><a id="Can19"></a><a id="Cant-do-inplace-edit:-s-would-not-be-unique"></a>Can&#39;t do inplace edit: %s would not be unique</dt>
<dd>

<p>(S inplace) Your filesystem does not support filenames longer than 14 characters and Perl was unable to create a unique filename during inplace editing with the <b>-i</b> switch. The file was ignored.</p>

</dd>
<dt id="Can&#39;t-do-%s(&quot;%s&quot;)-on-non-UTF-8-locale;-resolved-to-&quot;%s&quot;."><a class="permalink" href="perldiag.html#Can&#39;t-do-%25s(%22%25s%22)-on-non-UTF-8-locale;-resolved-to-%22%25s%22.">#</a><a id="Can20"></a><a id="Cant-do-s-s-on-non-UTF-8-locale-resolved-to-s"></a>Can&#39;t do %s(&quot;%s&quot;) on non-UTF-8 locale; resolved to &quot;%s&quot;.</dt>
<dd>

<p>(W locale) You are 1) running under &quot;<code>use locale</code>&quot;; 2) the current locale is not a UTF-8 one; 3) you tried to do the designated case-change operation on the specified Unicode character; and 4) the result of this operation would mix Unicode and locale rules, which likely conflict. Mixing of different rule types is forbidden, so the operation was not done; instead the result is the indicated value, which is the best available that uses entirely Unicode rules. That turns out to almost always be the original character, unchanged.</p>

<p>It is generally a bad idea to mix non-UTF-8 locales and Unicode, and this issue is one of the reasons why. This warning is raised when Unicode rules would normally cause the result of this operation to contain a character that is in the range specified by the locale, 0..255, and hence is subject to the locale&#39;s rules, not Unicode&#39;s.</p>

<p>If you are using locale purely for its characteristics related to things like its numeric and time formatting (and not <code>LC_CTYPE</code>), consider using a restricted form of the locale pragma (see <a href="perllocale.html#The-%22use-locale%22-pragma">&quot;The &quot;use locale&quot; pragma&quot; in perllocale</a>) like &quot;<span style="white-space: nowrap;"><code>use locale &#39;:not_characters&#39;</code></span>&quot;.</p>

<p>Note that failed case-changing operations done as a result of case-insensitive <code>/i</code> regular expression matching will show up in this warning as having the <code>fc</code> operation (as that is what the regular expression engine calls behind the scenes.)</p>

</dd>
<dt id="Can&#39;t-do-waitpid-with-flags"><a class="permalink" href="perldiag.html#Can&#39;t-do-waitpid-with-flags">#</a><a id="Can21"></a><a id="Cant-do-waitpid-with-flags"></a>Can&#39;t do waitpid with flags</dt>
<dd>

<p>(F) This machine doesn&#39;t have either waitpid() or wait4(), so only waitpid() without flags is emulated.</p>

</dd>
<dt id="Can&#39;t-emulate-%s-on-#!-line"><a class="permalink" href="perldiag.html#Can&#39;t-emulate-%25s-on-%23!-line">#</a><a id="Can22"></a><a id="Cant-emulate---s-on-line"></a>Can&#39;t emulate -%s on #! line</dt>
<dd>

<p>(F) The #! line specifies a switch that doesn&#39;t make sense at this point. For example, it&#39;d be kind of silly to put a <b>-x</b> on the #! line.</p>

</dd>
<dt id="Can&#39;t-%s-%s-endian-%ss-on-this-platform"><a class="permalink" href="perldiag.html#Can&#39;t-%25s-%25s-endian-%25ss-on-this-platform">#</a><a id="Can23"></a><a id="Cant-s-s-endian-ss-on-this-platform"></a>Can&#39;t %s %s-endian %ss on this platform</dt>
<dd>

<p>(F) Your platform&#39;s byte-order is neither big-endian nor little-endian, or it has a very strange pointer size. Packing and unpacking big- or little-endian floating point values and pointers may not be possible. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="Can&#39;t-exec-&quot;%s&quot;:-%s"><a class="permalink" href="perldiag.html#Can&#39;t-exec-%22%25s%22:-%25s">#</a><a id="Can24"></a><a id="Cant-exec-s:-s"></a>Can&#39;t exec &quot;%s&quot;: %s</dt>
<dd>

<p>(W exec) A system(), exec(), or piped open call could not execute the named program for the indicated reason. Typical reasons include: the permissions were wrong on the file, the file wasn&#39;t found in <code>$ENV{PATH}</code>, the executable in question was compiled for another architecture, or the #! line in a script points to an interpreter that can&#39;t be run for similar reasons. (Or maybe your system doesn&#39;t support #! at all.)</p>

</dd>
<dt id="Can&#39;t-exec-%s"><a class="permalink" href="perldiag.html#Can&#39;t-exec-%25s">#</a><a id="Can25"></a><a id="Cant-exec-s"></a>Can&#39;t exec %s</dt>
<dd>

<p>(F) Perl was trying to execute the indicated program for you because that&#39;s what the #! line said. If that&#39;s not what you wanted, you may need to mention &quot;perl&quot; on the #! line somewhere.</p>

</dd>
<dt id="Can&#39;t-execute-%s"><a class="permalink" href="perldiag.html#Can&#39;t-execute-%25s">#</a><a id="Can26"></a><a id="Cant-execute-s"></a>Can&#39;t execute %s</dt>
<dd>

<p>(F) You used the <b>-S</b> switch, but the copies of the script to execute found in the PATH did not have correct permissions.</p>

</dd>
<dt id="Can&#39;t-find-an-opnumber-for-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Can&#39;t-find-an-opnumber-for-%22%25s%22">#</a><a id="Can27"></a><a id="Cant-find-an-opnumber-for-s"></a>Can&#39;t find an opnumber for &quot;%s&quot;</dt>
<dd>

<p>(F) A string of a form <code>CORE::word</code> was given to prototype(), but there is no builtin with the name <code>word</code>.</p>

</dd>
<dt id="Can&#39;t-find-label-%s"><a class="permalink" href="perldiag.html#Can&#39;t-find-label-%25s">#</a><a id="Can28"></a><a id="Cant-find-label-s"></a>Can&#39;t find label %s</dt>
<dd>

<p>(F) You said to goto a label that isn&#39;t mentioned anywhere that it&#39;s possible for us to go to. See <a href="perlfunc.html#goto">&quot;goto&quot; in perlfunc</a>.</p>

</dd>
<dt id="Can&#39;t-find-%s-on-PATH"><a class="permalink" href="perldiag.html#Can&#39;t-find-%25s-on-PATH">#</a><a id="Can29"></a><a id="Cant-find-s-on-PATH"></a>Can&#39;t find %s on PATH</dt>
<dd>

<p>(F) You used the <b>-S</b> switch, but the script to execute could not be found in the PATH.</p>

</dd>
<dt id="Can&#39;t-find-%s-on-PATH,-&#39;.&#39;-not-in-PATH"><a class="permalink" href="perldiag.html#Can&#39;t-find-%25s-on-PATH,-&#39;.&#39;-not-in-PATH">#</a><a id="Can30"></a><a id="Cant-find-s-on-PATH-.-not-in-PATH"></a>Can&#39;t find %s on PATH, &#39;.&#39; not in PATH</dt>
<dd>

<p>(F) You used the <b>-S</b> switch, but the script to execute could not be found in the PATH, or at least not with the correct permissions. The script exists in the current directory, but PATH prohibits running it.</p>

</dd>
<dt id="Can&#39;t-find-string-terminator-%s-anywhere-before-EOF"><a class="permalink" href="perldiag.html#Can&#39;t-find-string-terminator-%25s-anywhere-before-EOF">#</a><a id="Can31"></a><a id="Cant-find-string-terminator-s-anywhere-before-EOF"></a>Can&#39;t find string terminator %s anywhere before EOF</dt>
<dd>

<p>(F) Perl strings can stretch over multiple lines. This message means that the closing delimiter was omitted. Because bracketed quotes count nesting levels, the following is missing its final parenthesis:</p>

<pre><code>print q(The character &#39;(&#39; starts a side comment.);</code></pre>

<p>If you&#39;re getting this error from a here-document, you may have included unseen whitespace before or after your closing tag or there may not be a linebreak after it. A good programmer&#39;s editor will have a way to help you find these characters (or lack of characters). See <a href="perlop.html">perlop</a> for the full details on here-documents.</p>

</dd>
<dt id="Can&#39;t-find-Unicode-property-definition-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Can&#39;t-find-Unicode-property-definition-%22%25s%22">#</a><a id="Can32"></a><a id="Cant-find-Unicode-property-definition-s"></a>Can&#39;t find Unicode property definition &quot;%s&quot;</dt>
<dd>

</dd>
<dt id="Can&#39;t-find-Unicode-property-definition-&quot;%s&quot;-in-regex;-marked-by-&lt;-HERE-in-m/%s/"><a class="permalink" href="perldiag.html#Can&#39;t-find-Unicode-property-definition-%22%25s%22-in-regex;-marked-by-%3C-HERE-in-m/%25s/">#</a><a id="Can33"></a><a id="Cant-find-Unicode-property-definition-s-in-regex-marked-by----HERE-in-m-s"></a>Can&#39;t find Unicode property definition &quot;%s&quot; in regex; marked by &lt;-- HERE in m/%s/</dt>
<dd>

<p>(F) The named property which you specified via <code>\p</code> or <code>\P</code> is not one known to Perl. Perhaps you misspelled the name? See <a href="perluniprops.html#Properties-accessible-through-%5Cp%7B%7D-and-%5CP%7B%7D">&quot;Properties accessible through \p{} and \P{}&quot; in perluniprops</a> for a complete list of available official properties. If it is a <a href="perlunicode.html#User-Defined-Character-Properties">user-defined property</a> it must have been defined by the time the regular expression is matched.</p>

<p>If you didn&#39;t mean to use a Unicode property, escape the <code>\p</code>, either by <code>\\p</code> (just the <code>\p</code>) or by <code>\Q\p</code> (the rest of the string, or until <code>\E</code>).</p>

</dd>
<dt id="Can&#39;t-fork:-%s"><a class="permalink" href="perldiag.html#Can&#39;t-fork:-%25s">#</a><a id="Can34"></a><a id="Cant-fork:-s"></a>Can&#39;t fork: %s</dt>
<dd>

<p>(F) A fatal error occurred while trying to fork while opening a pipeline.</p>

</dd>
<dt id="Can&#39;t-fork,-trying-again-in-5-seconds"><a class="permalink" href="perldiag.html#Can&#39;t-fork,-trying-again-in-5-seconds">#</a><a id="Can35"></a><a id="Cant-fork-trying-again-in-5-seconds"></a>Can&#39;t fork, trying again in 5 seconds</dt>
<dd>

<p>(W pipe) A fork in a piped open failed with EAGAIN and will be retried after five seconds.</p>

</dd>
<dt id="Can&#39;t-get-filespec-stale-stat-buffer?"><a class="permalink" href="perldiag.html#Can&#39;t-get-filespec-stale-stat-buffer?">#</a><a id="Can36"></a><a id="Cant-get-filespec---stale-stat-buffer"></a>Can&#39;t get filespec - stale stat buffer?</dt>
<dd>

<p>(S) A warning peculiar to VMS. This arises because of the difference between access checks under VMS and under the Unix model Perl assumes. Under VMS, access checks are done by filename, rather than by bits in the stat buffer, so that ACLs and other protections can be taken into account. Unfortunately, Perl assumes that the stat buffer contains all the necessary information, and passes it, instead of the filespec, to the access-checking routine. It will try to retrieve the filespec using the device name and FID present in the stat buffer, but this works only if you haven&#39;t made a subsequent call to the CRTL stat() routine, because the device name is overwritten with each call. If this warning appears, the name lookup failed, and the access-checking routine gave up and returned FALSE, just to be conservative. (Note: The access-checking routine knows about the Perl <code>stat</code> operator and file tests, so you shouldn&#39;t ever see this warning in response to a Perl command; it arises only if some internal code takes stat buffers lightly.)</p>

</dd>
<dt id="Can&#39;t-get-pipe-mailbox-device-name"><a class="permalink" href="perldiag.html#Can&#39;t-get-pipe-mailbox-device-name">#</a><a id="Can37"></a><a id="Cant-get-pipe-mailbox-device-name"></a>Can&#39;t get pipe mailbox device name</dt>
<dd>

<p>(P) An error peculiar to VMS. After creating a mailbox to act as a pipe, Perl can&#39;t retrieve its name for later use.</p>

</dd>
<dt id="Can&#39;t-get-SYSGEN-parameter-value-for-MAXBUF"><a class="permalink" href="perldiag.html#Can&#39;t-get-SYSGEN-parameter-value-for-MAXBUF">#</a><a id="Can38"></a><a id="Cant-get-SYSGEN-parameter-value-for-MAXBUF"></a>Can&#39;t get SYSGEN parameter value for MAXBUF</dt>
<dd>

<p>(P) An error peculiar to VMS. Perl asked $GETSYI how big you want your mailbox buffers to be, and didn&#39;t get an answer.</p>

</dd>
<dt id="Can&#39;t-&quot;goto&quot;-into-a-binary-or-list-expression"><a class="permalink" href="perldiag.html#Can&#39;t-%22goto%22-into-a-binary-or-list-expression">#</a><a id="Can39"></a><a id="Cant-goto-into-a-binary-or-list-expression"></a>Can&#39;t &quot;goto&quot; into a binary or list expression</dt>
<dd>

<p>(F) A &quot;goto&quot; statement was executed to jump into the middle of a binary or list expression. You can&#39;t get there from here. The reason for this restriction is that the interpreter would get confused as to how many arguments there are, resulting in stack corruption or crashes. This error occurs in cases such as these:</p>

<pre><code>goto F;
print do { F: }; # Can&#39;t jump into the arguments to print

goto G;
$x + do { G: $y }; # How is + supposed to get its first operand?</code></pre>

</dd>
<dt id="Can&#39;t-&quot;goto&quot;-into-a-&quot;given&quot;-block"><a class="permalink" href="perldiag.html#Can&#39;t-%22goto%22-into-a-%22given%22-block">#</a><a id="Can40"></a><a id="Cant-goto-into-a-given-block"></a>Can&#39;t &quot;goto&quot; into a &quot;given&quot; block</dt>
<dd>

<p>(F) A &quot;goto&quot; statement was executed to jump into the middle of a <code>given</code> block. You can&#39;t get there from here. See <a href="perlfunc.html#goto">&quot;goto&quot; in perlfunc</a>.</p>

</dd>
<dt id="Can&#39;t-&quot;goto&quot;-into-the-middle-of-a-foreach-loop"><a class="permalink" href="perldiag.html#Can&#39;t-%22goto%22-into-the-middle-of-a-foreach-loop">#</a><a id="Can41"></a><a id="Cant-goto-into-the-middle-of-a-foreach-loop"></a>Can&#39;t &quot;goto&quot; into the middle of a foreach loop</dt>
<dd>

<p>(F) A &quot;goto&quot; statement was executed to jump into the middle of a foreach loop. You can&#39;t get there from here. See <a href="perlfunc.html#goto">&quot;goto&quot; in perlfunc</a>.</p>

</dd>
<dt id="Can&#39;t-&quot;goto&quot;-out-of-a-pseudo-block"><a class="permalink" href="perldiag.html#Can&#39;t-%22goto%22-out-of-a-pseudo-block">#</a><a id="Can42"></a><a id="Cant-goto-out-of-a-pseudo-block"></a>Can&#39;t &quot;goto&quot; out of a pseudo block</dt>
<dd>

<p>(F) A &quot;goto&quot; statement was executed to jump out of what might look like a block, except that it isn&#39;t a proper block. This usually occurs if you tried to jump out of a sort() block or subroutine, which is a no-no. See <a href="perlfunc.html#goto">&quot;goto&quot; in perlfunc</a>.</p>

</dd>
<dt id="Can&#39;t-goto-subroutine-from-an-eval-%s"><a class="permalink" href="perldiag.html#Can&#39;t-goto-subroutine-from-an-eval-%25s">#</a><a id="Can43"></a><a id="Cant-goto-subroutine-from-an-eval--s"></a>Can&#39;t goto subroutine from an eval-%s</dt>
<dd>

<p>(F) The &quot;goto subroutine&quot; call can&#39;t be used to jump out of an eval &quot;string&quot; or block.</p>

</dd>
<dt id="Can&#39;t-goto-subroutine-from-a-sort-sub-(or-similar-callback)"><a class="permalink" href="perldiag.html#Can&#39;t-goto-subroutine-from-a-sort-sub-(or-similar-callback)">#</a><a id="Can44"></a><a id="Cant-goto-subroutine-from-a-sort-sub-or-similar-callback"></a>Can&#39;t goto subroutine from a sort sub (or similar callback)</dt>
<dd>

<p>(F) The &quot;goto subroutine&quot; call can&#39;t be used to jump out of the comparison sub for a sort(), or from a similar callback (such as the reduce() function in List::Util).</p>

</dd>
<dt id="Can&#39;t-goto-subroutine-outside-a-subroutine"><a class="permalink" href="perldiag.html#Can&#39;t-goto-subroutine-outside-a-subroutine">#</a><a id="Can45"></a><a id="Cant-goto-subroutine-outside-a-subroutine"></a>Can&#39;t goto subroutine outside a subroutine</dt>
<dd>

<p>(F) The deeply magical &quot;goto subroutine&quot; call can only replace one subroutine call for another. It can&#39;t manufacture one out of whole cloth. In general you should be calling it out of only an AUTOLOAD routine anyway. See <a href="perlfunc.html#goto">&quot;goto&quot; in perlfunc</a>.</p>

</dd>
<dt id="Can&#39;t-ignore-signal-CHLD,-forcing-to-default"><a class="permalink" href="perldiag.html#Can&#39;t-ignore-signal-CHLD,-forcing-to-default">#</a><a id="Can46"></a><a id="Cant-ignore-signal-CHLD-forcing-to-default"></a>Can&#39;t ignore signal CHLD, forcing to default</dt>
<dd>

<p>(W signal) Perl has detected that it is being run with the SIGCHLD signal (sometimes known as SIGCLD) disabled. Since disabling this signal will interfere with proper determination of exit status of child processes, Perl has reset the signal to its default value. This situation typically indicates that the parent program under which Perl may be running (e.g. cron) is being very careless.</p>

</dd>
<dt id="Can&#39;t-kill-a-non-numeric-process-ID"><a class="permalink" href="perldiag.html#Can&#39;t-kill-a-non-numeric-process-ID">#</a><a id="Can47"></a><a id="Cant-kill-a-non-numeric-process-ID"></a>Can&#39;t kill a non-numeric process ID</dt>
<dd>

<p>(F) Process identifiers must be (signed) integers. It is a fatal error to attempt to kill() an undefined, empty-string or otherwise non-numeric process identifier.</p>

</dd>
<dt id="Can&#39;t-&quot;last&quot;-outside-a-loop-block"><a class="permalink" href="perldiag.html#Can&#39;t-%22last%22-outside-a-loop-block">#</a><a id="Can48"></a><a id="Cant-last-outside-a-loop-block"></a>Can&#39;t &quot;last&quot; outside a loop block</dt>
<dd>

<p>(F) A &quot;last&quot; statement was executed to break out of the current block, except that there&#39;s this itty bitty problem called there isn&#39;t a current block. Note that an &quot;if&quot; or &quot;else&quot; block doesn&#39;t count as a &quot;loopish&quot; block, as doesn&#39;t a block given to sort(), map() or grep(). You can usually double the curlies to get the same effect though, because the inner curlies will be considered a block that loops once. See <a href="perlfunc.html#last">&quot;last&quot; in perlfunc</a>.</p>

</dd>
<dt id="Can&#39;t-linearize-anonymous-symbol-table"><a class="permalink" href="perldiag.html#Can&#39;t-linearize-anonymous-symbol-table">#</a><a id="Can49"></a><a id="Cant-linearize-anonymous-symbol-table"></a>Can&#39;t linearize anonymous symbol table</dt>
<dd>

<p>(F) Perl tried to calculate the method resolution order (MRO) of a package, but failed because the package stash has no name.</p>

</dd>
<dt id="Can&#39;t-load-&#39;%s&#39;-for-module-%s"><a class="permalink" href="perldiag.html#Can&#39;t-load-&#39;%25s&#39;-for-module-%25s">#</a><a id="Can50"></a><a id="Cant-load-s-for-module-s"></a>Can&#39;t load &#39;%s&#39; for module %s</dt>
<dd>

<p>(F) The module you tried to load failed to load a dynamic extension. This may either mean that you upgraded your version of perl to one that is incompatible with your old dynamic extensions (which is known to happen between major versions of perl), or (more likely) that your dynamic extension was built against an older version of the library that is installed on your system. You may need to rebuild your old dynamic extensions.</p>

</dd>
<dt id="Can&#39;t-localize-lexical-variable-%s"><a class="permalink" href="perldiag.html#Can&#39;t-localize-lexical-variable-%25s">#</a><a id="Can51"></a><a id="Cant-localize-lexical-variable-s"></a>Can&#39;t localize lexical variable %s</dt>
<dd>

<p>(F) You used local on a variable name that was previously declared as a lexical variable using &quot;my&quot; or &quot;state&quot;. This is not allowed. If you want to localize a package variable of the same name, qualify it with the package name.</p>

</dd>
<dt id="Can&#39;t-localize-through-a-reference"><a class="permalink" href="perldiag.html#Can&#39;t-localize-through-a-reference">#</a><a id="Can52"></a><a id="Cant-localize-through-a-reference"></a>Can&#39;t localize through a reference</dt>
<dd>

<p>(F) You said something like <code>local $$ref</code>, which Perl can&#39;t currently handle, because when it goes to restore the old value of whatever $ref pointed to after the scope of the local() is finished, it can&#39;t be sure that $ref will still be a reference.</p>

</dd>
<dt id="Can&#39;t-locate-%s"><a class="permalink" href="perldiag.html#Can&#39;t-locate-%25s">#</a><a id="Can53"></a><a id="Cant-locate-s"></a>Can&#39;t locate %s</dt>
<dd>

<p>(F) You said to <code>do</code> (or <code>require</code>, or <code>use</code>) a file that couldn&#39;t be found. Perl looks for the file in all the locations mentioned in @INC, unless the file name included the full path to the file. Perhaps you need to set the PERL5LIB or PERL5OPT environment variable to say where the extra library is, or maybe the script needs to add the library name to @INC. Or maybe you just misspelled the name of the file. See <a href="perlfunc.html#require">&quot;require&quot; in perlfunc</a> and <a href="lib.html">lib</a>.</p>

</dd>
<dt id="Can&#39;t-locate-auto/%s.al-in-@INC"><a class="permalink" href="perldiag.html#Can&#39;t-locate-auto/%25s.al-in-@INC">#</a><a id="Can54"></a><a id="Cant-locate-auto-s.al-in-INC"></a>Can&#39;t locate auto/%s.al in @INC</dt>
<dd>

<p>(F) A function (or method) was called in a package which allows autoload, but there is no function to autoload. Most probable causes are a misprint in a function/method name or a failure to <code>AutoSplit</code> the file, say, by doing <code>make install</code>.</p>

</dd>
<dt id="Can&#39;t-locate-loadable-object-for-module-%s-in-@INC"><a class="permalink" href="perldiag.html#Can&#39;t-locate-loadable-object-for-module-%25s-in-@INC">#</a><a id="Can55"></a><a id="Cant-locate-loadable-object-for-module-s-in-INC"></a>Can&#39;t locate loadable object for module %s in @INC</dt>
<dd>

<p>(F) The module you loaded is trying to load an external library, like for example, <i>foo.so</i> or <i>bar.dll</i>, but the <a href="DynaLoader.html">DynaLoader</a> module was unable to locate this library. See <a href="DynaLoader.html">DynaLoader</a>.</p>

</dd>
<dt id="Can&#39;t-locate-object-method-&quot;%s&quot;-via-package-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Can&#39;t-locate-object-method-%22%25s%22-via-package-%22%25s%22">#</a><a id="Can56"></a><a id="Cant-locate-object-method-s-via-package-s"></a>Can&#39;t locate object method &quot;%s&quot; via package &quot;%s&quot;</dt>
<dd>

<p>(F) You called a method correctly, and it correctly indicated a package functioning as a class, but that package doesn&#39;t define that particular method, nor does any of its base classes. See <a href="perlobj.html">perlobj</a>.</p>

</dd>
<dt id="Can&#39;t-locate-object-method-&quot;%s&quot;-via-package-&quot;%s&quot;-(perhaps-you-forgot-to-load-&quot;%s&quot;?)"><a class="permalink" href="perldiag.html#Can&#39;t-locate-object-method-%22%25s%22-via-package-%22%25s%22-(perhaps-you-forgot-to-load-%22%25s%22?)">#</a><a id="Can57"></a><a id="Cant-locate-object-method-s-via-package-s-perhaps-you-forgot-to-load-s"></a>Can&#39;t locate object method &quot;%s&quot; via package &quot;%s&quot; (perhaps you forgot to load &quot;%s&quot;?)</dt>
<dd>

<p>(F) You called a method on a class that did not exist, and the method could not be found in UNIVERSAL. This often means that a method requires a package that has not been loaded.</p>

</dd>
<dt id="Can&#39;t-locate-package-%s-for-@%s::ISA"><a class="permalink" href="perldiag.html#Can&#39;t-locate-package-%25s-for-@%25s::ISA">#</a><a id="Can58"></a><a id="Cant-locate-package-s-for-s::ISA"></a>Can&#39;t locate package %s for @%s::ISA</dt>
<dd>

<p>(W syntax) The @ISA array contained the name of another package that doesn&#39;t seem to exist.</p>

</dd>
<dt id="Can&#39;t-locate-PerlIO%s"><a class="permalink" href="perldiag.html#Can&#39;t-locate-PerlIO%25s">#</a><a id="Can59"></a><a id="Cant-locate-PerlIO-s"></a>Can&#39;t locate PerlIO%s</dt>
<dd>

<p>(F) You tried to use in open() a PerlIO layer that does not exist, e.g. open(FH, &quot;&gt;:nosuchlayer&quot;, &quot;somefile&quot;).</p>

</dd>
<dt id="Can&#39;t-make-list-assignment-to-%ENV-on-this-system"><a class="permalink" href="perldiag.html#Can&#39;t-make-list-assignment-to-%25ENV-on-this-system">#</a><a id="Can60"></a><a id="Cant-make-list-assignment-to-ENV-on-this-system"></a>Can&#39;t make list assignment to %ENV on this system</dt>
<dd>

<p>(F) List assignment to %ENV is not supported on some systems, notably VMS.</p>

</dd>
<dt id="Can&#39;t-make-loaded-symbols-global-on-this-platform-while-loading-%s"><a class="permalink" href="perldiag.html#Can&#39;t-make-loaded-symbols-global-on-this-platform-while-loading-%25s">#</a><a id="Can61"></a><a id="Cant-make-loaded-symbols-global-on-this-platform-while-loading-s"></a>Can&#39;t make loaded symbols global on this platform while loading %s</dt>
<dd>

<p>(S) A module passed the flag 0x01 to DynaLoader::dl_load_file() to request that symbols from the stated file are made available globally within the process, but that functionality is not available on this platform. Whilst the module likely will still work, this may prevent the perl interpreter from loading other XS-based extensions which need to link directly to functions defined in the C or XS code in the stated file.</p>

</dd>
<dt id="Can&#39;t-modify-%s-in-%s"><a class="permalink" href="perldiag.html#Can&#39;t-modify-%25s-in-%25s">#</a><a id="Can62"></a><a id="Cant-modify-s-in-s"></a>Can&#39;t modify %s in %s</dt>
<dd>

<p>(F) You aren&#39;t allowed to assign to the item indicated, or otherwise try to change it, such as with an auto-increment.</p>

</dd>
<dt id="Can&#39;t-modify-nonexistent-substring"><a class="permalink" href="perldiag.html#Can&#39;t-modify-nonexistent-substring">#</a><a id="Can63"></a><a id="Cant-modify-nonexistent-substring"></a>Can&#39;t modify nonexistent substring</dt>
<dd>

<p>(P) The internal routine that does assignment to a substr() was handed a NULL.</p>

</dd>
<dt id="Can&#39;t-modify-non-lvalue-subroutine-call-of-&amp;%s"><a class="permalink" href="perldiag.html#Can&#39;t-modify-non-lvalue-subroutine-call-of-&amp;%25s">#</a><a id="Can64"></a><a id="Cant-modify-non-lvalue-subroutine-call-of-s"></a>Can&#39;t modify non-lvalue subroutine call of &amp;%s</dt>
<dd>

</dd>
<dt id="Can&#39;t-modify-non-lvalue-subroutine-call-of-&amp;%s-in-%s"><a class="permalink" href="perldiag.html#Can&#39;t-modify-non-lvalue-subroutine-call-of-&amp;%25s-in-%25s">#</a><a id="Can65"></a><a id="Cant-modify-non-lvalue-subroutine-call-of-s-in-s"></a>Can&#39;t modify non-lvalue subroutine call of &amp;%s in %s</dt>
<dd>

<p>(F) Subroutines meant to be used in lvalue context should be declared as such. See <a href="perlsub.html#Lvalue-subroutines">&quot;Lvalue subroutines&quot; in perlsub</a>.</p>

</dd>
<dt id="Can&#39;t-modify-reference-to-%s-in-%s-assignment"><a class="permalink" href="perldiag.html#Can&#39;t-modify-reference-to-%25s-in-%25s-assignment">#</a><a id="Can66"></a><a id="Cant-modify-reference-to-s-in-s-assignment"></a>Can&#39;t modify reference to %s in %s assignment</dt>
<dd>

<p>(F) Only a limited number of constructs can be used as the argument to a reference constructor on the left-hand side of an assignment, and what you used was not one of them. See <a href="perlref.html#Assigning-to-References">&quot;Assigning to References&quot; in perlref</a>.</p>

</dd>
<dt id="Can&#39;t-modify-reference-to-localized-parenthesized-array-in-list-assignment"><a class="permalink" href="perldiag.html#Can&#39;t-modify-reference-to-localized-parenthesized-array-in-list-assignment">#</a><a id="Can67"></a><a id="Cant-modify-reference-to-localized-parenthesized-array-in-list-assignment"></a>Can&#39;t modify reference to localized parenthesized array in list assignment</dt>
<dd>

<p>(F) Assigning to <code>\local(@array)</code> or <code>\(local @array)</code> is not supported, as it is not clear exactly what it should do. If you meant to make @array refer to some other array, use <code>\@array = \@other_array</code>. If you want to make the elements of @array aliases of the scalars referenced on the right-hand side, use <code>\(@array) = @scalar_refs</code>.</p>

</dd>
<dt id="Can&#39;t-modify-reference-to-parenthesized-hash-in-list-assignment"><a class="permalink" href="perldiag.html#Can&#39;t-modify-reference-to-parenthesized-hash-in-list-assignment">#</a><a id="Can68"></a><a id="Cant-modify-reference-to-parenthesized-hash-in-list-assignment"></a>Can&#39;t modify reference to parenthesized hash in list assignment</dt>
<dd>

<p>(F) Assigning to <code>\(%hash)</code> is not supported. If you meant to make %hash refer to some other hash, use <code>\%hash = \%other_hash</code>. If you want to make the elements of %hash into aliases of the scalars referenced on the right-hand side, use a hash slice: <code>\@hash{@keys} = @those_scalar_refs</code>.</p>

</dd>
<dt id="Can&#39;t-msgrcv-to-read-only-var"><a class="permalink" href="perldiag.html#Can&#39;t-msgrcv-to-read-only-var">#</a><a id="Can69"></a><a id="Cant-msgrcv-to-read-only-var"></a>Can&#39;t msgrcv to read-only var</dt>
<dd>

<p>(F) The target of a msgrcv must be modifiable to be used as a receive buffer.</p>

</dd>
<dt id="Can&#39;t-&quot;next&quot;-outside-a-loop-block"><a class="permalink" href="perldiag.html#Can&#39;t-%22next%22-outside-a-loop-block">#</a><a id="Can70"></a><a id="Cant-next-outside-a-loop-block"></a>Can&#39;t &quot;next&quot; outside a loop block</dt>
<dd>

<p>(F) A &quot;next&quot; statement was executed to reiterate the current block, but there isn&#39;t a current block. Note that an &quot;if&quot; or &quot;else&quot; block doesn&#39;t count as a &quot;loopish&quot; block, as doesn&#39;t a block given to sort(), map() or grep(). You can usually double the curlies to get the same effect though, because the inner curlies will be considered a block that loops once. See <a href="perlfunc.html#next">&quot;next&quot; in perlfunc</a>.</p>

</dd>
<dt id="Can&#39;t-open-%s:-%s"><a class="permalink" href="perldiag.html#Can&#39;t-open-%25s:-%25s">#</a><a id="Can71"></a><a id="Cant-open-s:-s"></a>Can&#39;t open %s: %s</dt>
<dd>

<p>(S inplace) The implicit opening of a file through use of the <code>&lt;&gt;</code> filehandle, either implicitly under the <code>-n</code> or <code>-p</code> command-line switches, or explicitly, failed for the indicated reason. Usually this is because you don&#39;t have read permission for a file which you named on the command line.</p>

<p>(F) You tried to call perl with the <b>-e</b> switch, but <i>/dev/null</i> (or your operating system&#39;s equivalent) could not be opened.</p>

</dd>
<dt id="Can&#39;t-open-a-reference"><a class="permalink" href="perldiag.html#Can&#39;t-open-a-reference">#</a><a id="Can72"></a><a id="Cant-open-a-reference"></a>Can&#39;t open a reference</dt>
<dd>

<p>(W io) You tried to open a scalar reference for reading or writing, using the 3-arg open() syntax:</p>

<pre><code>open FH, &#39;&gt;&#39;, $ref;</code></pre>

<p>but your version of perl is compiled without perlio, and this form of open is not supported.</p>

</dd>
<dt id="Can&#39;t-open-bidirectional-pipe"><a class="permalink" href="perldiag.html#Can&#39;t-open-bidirectional-pipe">#</a><a id="Can73"></a><a id="Cant-open-bidirectional-pipe"></a>Can&#39;t open bidirectional pipe</dt>
<dd>

<p>(W pipe) You tried to say <code>open(CMD, &quot;|cmd|&quot;)</code>, which is not supported. You can try any of several modules in the Perl library to do this, such as IPC::Open2. Alternately, direct the pipe&#39;s output to a file using &quot;&gt;&quot;, and then read it in under a different file handle.</p>

</dd>
<dt id="Can&#39;t-open-error-file-%s-as-stderr"><a class="permalink" href="perldiag.html#Can&#39;t-open-error-file-%25s-as-stderr">#</a><a id="Can74"></a><a id="Cant-open-error-file-s-as-stderr"></a>Can&#39;t open error file %s as stderr</dt>
<dd>

<p>(F) An error peculiar to VMS. Perl does its own command line redirection, and couldn&#39;t open the file specified after &#39;2&gt;&#39; or &#39;2&gt;&gt;&#39; on the command line for writing.</p>

</dd>
<dt id="Can&#39;t-open-input-file-%s-as-stdin"><a class="permalink" href="perldiag.html#Can&#39;t-open-input-file-%25s-as-stdin">#</a><a id="Can75"></a><a id="Cant-open-input-file-s-as-stdin"></a>Can&#39;t open input file %s as stdin</dt>
<dd>

<p>(F) An error peculiar to VMS. Perl does its own command line redirection, and couldn&#39;t open the file specified after &#39;&lt;&#39; on the command line for reading.</p>

</dd>
<dt id="Can&#39;t-open-output-file-%s-as-stdout"><a class="permalink" href="perldiag.html#Can&#39;t-open-output-file-%25s-as-stdout">#</a><a id="Can76"></a><a id="Cant-open-output-file-s-as-stdout"></a>Can&#39;t open output file %s as stdout</dt>
<dd>

<p>(F) An error peculiar to VMS. Perl does its own command line redirection, and couldn&#39;t open the file specified after &#39;&gt;&#39; or &#39;&gt;&gt;&#39; on the command line for writing.</p>

</dd>
<dt id="Can&#39;t-open-output-pipe-(name:-%s)"><a class="permalink" href="perldiag.html#Can&#39;t-open-output-pipe-(name:-%25s)">#</a><a id="Can77"></a><a id="Cant-open-output-pipe-name:-s"></a>Can&#39;t open output pipe (name: %s)</dt>
<dd>

<p>(P) An error peculiar to VMS. Perl does its own command line redirection, and couldn&#39;t open the pipe into which to send data destined for stdout.</p>

</dd>
<dt id="Can&#39;t-open-perl-script-&quot;%s&quot;:-%s"><a class="permalink" href="perldiag.html#Can&#39;t-open-perl-script-%22%25s%22:-%25s">#</a><a id="Can78"></a><a id="Cant-open-perl-script-s:-s"></a>Can&#39;t open perl script &quot;%s&quot;: %s</dt>
<dd>

<p>(F) The script you specified can&#39;t be opened for the indicated reason.</p>

<p>If you&#39;re debugging a script that uses #!, and normally relies on the shell&#39;s $PATH search, the -S option causes perl to do that search, so you don&#39;t have to type the path or <code>`which $scriptname`</code>.</p>

</dd>
<dt id="Can&#39;t-read-CRTL-environ"><a class="permalink" href="perldiag.html#Can&#39;t-read-CRTL-environ">#</a><a id="Can79"></a><a id="Cant-read-CRTL-environ"></a>Can&#39;t read CRTL environ</dt>
<dd>

<p>(S) A warning peculiar to VMS. Perl tried to read an element of %ENV from the CRTL&#39;s internal environment array and discovered the array was missing. You need to figure out where your CRTL misplaced its environ or define <i>PERL_ENV_TABLES</i> (see <a href="perlvms.html">perlvms</a>) so that environ is not searched.</p>

</dd>
<dt id="Can&#39;t-redeclare-&quot;%s&quot;-in-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Can&#39;t-redeclare-%22%25s%22-in-%22%25s%22">#</a><a id="Can80"></a><a id="Cant-redeclare-s-in-s"></a>Can&#39;t redeclare &quot;%s&quot; in &quot;%s&quot;</dt>
<dd>

<p>(F) A &quot;my&quot;, &quot;our&quot; or &quot;state&quot; declaration was found within another declaration, such as <code>my ($x, my($y), $z)</code> or <code>our (my $x)</code>.</p>

</dd>
<dt id="Can&#39;t-&quot;redo&quot;-outside-a-loop-block"><a class="permalink" href="perldiag.html#Can&#39;t-%22redo%22-outside-a-loop-block">#</a><a id="Can81"></a><a id="Cant-redo-outside-a-loop-block"></a>Can&#39;t &quot;redo&quot; outside a loop block</dt>
<dd>

<p>(F) A &quot;redo&quot; statement was executed to restart the current block, but there isn&#39;t a current block. Note that an &quot;if&quot; or &quot;else&quot; block doesn&#39;t count as a &quot;loopish&quot; block, as doesn&#39;t a block given to sort(), map() or grep(). You can usually double the curlies to get the same effect though, because the inner curlies will be considered a block that loops once. See <a href="perlfunc.html#redo">&quot;redo&quot; in perlfunc</a>.</p>

</dd>
<dt id="Can&#39;t-remove-%s:-%s,-skipping-file"><a class="permalink" href="perldiag.html#Can&#39;t-remove-%25s:-%25s,-skipping-file">#</a><a id="Can82"></a><a id="Cant-remove-s:-s-skipping-file"></a>Can&#39;t remove %s: %s, skipping file</dt>
<dd>

<p>(S inplace) You requested an inplace edit without creating a backup file. Perl was unable to remove the original file to replace it with the modified file. The file was left unmodified.</p>

</dd>
<dt id="Can&#39;t-rename-in-place-work-file-&#39;%s&#39;-to-&#39;%s&#39;:-%s"><a class="permalink" href="perldiag.html#Can&#39;t-rename-in-place-work-file-&#39;%25s&#39;-to-&#39;%25s&#39;:-%25s">#</a><a id="Can83"></a><a id="Cant-rename-in-place-work-file-s-to-s:-s"></a>Can&#39;t rename in-place work file &#39;%s&#39; to &#39;%s&#39;: %s</dt>
<dd>

<p>(F) When closed implicitly, the temporary file for in-place editing couldn&#39;t be renamed to the original filename.</p>

</dd>
<dt id="Can&#39;t-rename-%s-to-%s:-%s,-skipping-file"><a class="permalink" href="perldiag.html#Can&#39;t-rename-%25s-to-%25s:-%25s,-skipping-file">#</a><a id="Can84"></a><a id="Cant-rename-s-to-s:-s-skipping-file"></a>Can&#39;t rename %s to %s: %s, skipping file</dt>
<dd>

<p>(F) The rename done by the <b>-i</b> switch failed for some reason, probably because you don&#39;t have write permission to the directory.</p>

</dd>
<dt id="Can&#39;t-reopen-input-pipe-(name:-%s)-in-binary-mode"><a class="permalink" href="perldiag.html#Can&#39;t-reopen-input-pipe-(name:-%25s)-in-binary-mode">#</a><a id="Can85"></a><a id="Cant-reopen-input-pipe-name:-s-in-binary-mode"></a>Can&#39;t reopen input pipe (name: %s) in binary mode</dt>
<dd>

<p>(P) An error peculiar to VMS. Perl thought stdin was a pipe, and tried to reopen it to accept binary data. Alas, it failed.</p>

</dd>
<dt id="Can&#39;t-represent-character-for-Ox%X-on-this-platform"><a class="permalink" href="perldiag.html#Can&#39;t-represent-character-for-Ox%25X-on-this-platform">#</a><a id="Can86"></a><a id="Cant-represent-character-for-Ox-X-on-this-platform"></a>Can&#39;t represent character for Ox%X on this platform</dt>
<dd>

<p>(F) There is a hard limit to how big a character code point can be due to the fundamental properties of UTF-8, especially on EBCDIC platforms. The given code point exceeds that. The only work-around is to not use such a large code point.</p>

</dd>
<dt id="Can&#39;t-reset-%ENV-on-this-system"><a class="permalink" href="perldiag.html#Can&#39;t-reset-%25ENV-on-this-system">#</a><a id="Can87"></a><a id="Cant-reset-ENV-on-this-system"></a>Can&#39;t reset %ENV on this system</dt>
<dd>

<p>(F) You called <code>reset(&#39;E&#39;)</code> or similar, which tried to reset all variables in the current package beginning with &quot;E&quot;. In the main package, that includes %ENV. Resetting %ENV is not supported on some systems, notably VMS.</p>

</dd>
<dt id="Can&#39;t-resolve-method-&quot;%s&quot;-overloading-&quot;%s&quot;-in-package-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Can&#39;t-resolve-method-%22%25s%22-overloading-%22%25s%22-in-package-%22%25s%22">#</a><a id="Can88"></a><a id="Cant-resolve-method-s-overloading-s-in-package-s"></a>Can&#39;t resolve method &quot;%s&quot; overloading &quot;%s&quot; in package &quot;%s&quot;</dt>
<dd>

<p>(F)(P) Error resolving overloading specified by a method name (as opposed to a subroutine reference): no such method callable via the package. If the method name is <code>???</code>, this is an internal error.</p>

</dd>
<dt id="Can&#39;t-return-%s-from-lvalue-subroutine"><a class="permalink" href="perldiag.html#Can&#39;t-return-%25s-from-lvalue-subroutine">#</a><a id="Can89"></a><a id="Cant-return-s-from-lvalue-subroutine"></a>Can&#39;t return %s from lvalue subroutine</dt>
<dd>

<p>(F) Perl detected an attempt to return illegal lvalues (such as temporary or readonly values) from a subroutine used as an lvalue. This is not allowed.</p>

</dd>
<dt id="Can&#39;t-return-outside-a-subroutine"><a class="permalink" href="perldiag.html#Can&#39;t-return-outside-a-subroutine">#</a><a id="Can90"></a><a id="Cant-return-outside-a-subroutine"></a>Can&#39;t return outside a subroutine</dt>
<dd>

<p>(F) The return statement was executed in mainline code, that is, where there was no subroutine call to return out of. See <a href="perlsub.html">perlsub</a>.</p>

</dd>
<dt id="Can&#39;t-return-%s-to-lvalue-scalar-context"><a class="permalink" href="perldiag.html#Can&#39;t-return-%25s-to-lvalue-scalar-context">#</a><a id="Can91"></a><a id="Cant-return-s-to-lvalue-scalar-context"></a>Can&#39;t return %s to lvalue scalar context</dt>
<dd>

<p>(F) You tried to return a complete array or hash from an lvalue subroutine, but you called the subroutine in a way that made Perl think you meant to return only one value. You probably meant to write parentheses around the call to the subroutine, which tell Perl that the call should be in list context.</p>

</dd>
<dt id="Can&#39;t-stat-script-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Can&#39;t-stat-script-%22%25s%22">#</a><a id="Can92"></a><a id="Cant-stat-script-s"></a>Can&#39;t stat script &quot;%s&quot;</dt>
<dd>

<p>(P) For some reason you can&#39;t fstat() the script even though you have it open already. Bizarre.</p>

</dd>
<dt id="Can&#39;t-take-log-of-%g"><a class="permalink" href="perldiag.html#Can&#39;t-take-log-of-%25g">#</a><a id="Can93"></a><a id="Cant-take-log-of-g"></a>Can&#39;t take log of %g</dt>
<dd>

<p>(F) For ordinary real numbers, you can&#39;t take the logarithm of a negative number or zero. There&#39;s a Math::Complex package that comes standard with Perl, though, if you really want to do that for the negative numbers.</p>

</dd>
<dt id="Can&#39;t-take-sqrt-of-%g"><a class="permalink" href="perldiag.html#Can&#39;t-take-sqrt-of-%25g">#</a><a id="Can94"></a><a id="Cant-take-sqrt-of-g"></a>Can&#39;t take sqrt of %g</dt>
<dd>

<p>(F) For ordinary real numbers, you can&#39;t take the square root of a negative number. There&#39;s a Math::Complex package that comes standard with Perl, though, if you really want to do that.</p>

</dd>
<dt id="Can&#39;t-undef-active-subroutine"><a class="permalink" href="perldiag.html#Can&#39;t-undef-active-subroutine">#</a><a id="Can95"></a><a id="Cant-undef-active-subroutine"></a>Can&#39;t undef active subroutine</dt>
<dd>

<p>(F) You can&#39;t undefine a routine that&#39;s currently running. You can, however, redefine it while it&#39;s running, and you can even undef the redefined subroutine while the old routine is running. Go figure.</p>

</dd>
<dt id="Can&#39;t-unweaken-a-nonreference"><a class="permalink" href="perldiag.html#Can&#39;t-unweaken-a-nonreference">#</a><a id="Can96"></a><a id="Cant-unweaken-a-nonreference"></a>Can&#39;t unweaken a nonreference</dt>
<dd>

<p>(F) You attempted to unweaken something that was not a reference. Only references can be unweakened.</p>

</dd>
<dt id="Can&#39;t-upgrade-%s-(%d)-to-%d"><a class="permalink" href="perldiag.html#Can&#39;t-upgrade-%25s-(%25d)-to-%25d">#</a><a id="Can97"></a><a id="Cant-upgrade-s-d-to-d"></a>Can&#39;t upgrade %s (%d) to %d</dt>
<dd>

<p>(P) The internal sv_upgrade routine adds &quot;members&quot; to an SV, making it into a more specialized kind of SV. The top several SV types are so specialized, however, that they cannot be interconverted. This message indicates that such a conversion was attempted.</p>

</dd>
<dt id="Can&#39;t-use-&#39;%c&#39;-after-mname"><a class="permalink" href="perldiag.html#Can&#39;t-use-&#39;%25c&#39;-after-mname">#</a><a id="Can98"></a><a id="Cant-use-c-after--mname"></a>Can&#39;t use &#39;%c&#39; after -mname</dt>
<dd>

<p>(F) You tried to call perl with the <b>-m</b> switch, but you put something other than &quot;=&quot; after the module name.</p>

</dd>
<dt id="Can&#39;t-use-a-hash-as-a-reference"><a class="permalink" href="perldiag.html#Can&#39;t-use-a-hash-as-a-reference">#</a><a id="Can99"></a><a id="Cant-use-a-hash-as-a-reference"></a>Can&#39;t use a hash as a reference</dt>
<dd>

<p>(F) You tried to use a hash as a reference, as in <code>%foo-&gt;{&quot;bar&quot;}</code> or <code>%$ref-&gt;{&quot;hello&quot;}</code>. Versions of perl &lt;= 5.22.0 used to allow this syntax, but shouldn&#39;t have. This was deprecated in perl 5.6.1.</p>

</dd>
<dt id="Can&#39;t-use-an-array-as-a-reference"><a class="permalink" href="perldiag.html#Can&#39;t-use-an-array-as-a-reference">#</a><a id="Can100"></a><a id="Cant-use-an-array-as-a-reference"></a>Can&#39;t use an array as a reference</dt>
<dd>

<p>(F) You tried to use an array as a reference, as in <code>@foo-&gt;[23]</code> or <code>@$ref-&gt;[99]</code>. Versions of perl &lt;= 5.22.0 used to allow this syntax, but shouldn&#39;t have. This was deprecated in perl 5.6.1.</p>

</dd>
<dt id="Can&#39;t-use-anonymous-symbol-table-for-method-lookup"><a class="permalink" href="perldiag.html#Can&#39;t-use-anonymous-symbol-table-for-method-lookup">#</a><a id="Can101"></a><a id="Cant-use-anonymous-symbol-table-for-method-lookup"></a>Can&#39;t use anonymous symbol table for method lookup</dt>
<dd>

<p>(F) The internal routine that does method lookup was handed a symbol table that doesn&#39;t have a name. Symbol tables can become anonymous for example by undefining stashes: <code>undef %Some::Package::</code>.</p>

</dd>
<dt id="Can&#39;t-use-an-undefined-value-as-%s-reference"><a class="permalink" href="perldiag.html#Can&#39;t-use-an-undefined-value-as-%25s-reference">#</a><a id="Can102"></a><a id="Cant-use-an-undefined-value-as-s-reference"></a>Can&#39;t use an undefined value as %s reference</dt>
<dd>

<p>(F) A value used as either a hard reference or a symbolic reference must be a defined value. This helps to delurk some insidious errors.</p>

</dd>
<dt id="Can&#39;t-use-bareword-(&quot;%s&quot;)-as-%s-ref-while-&quot;strict-refs&quot;-in-use"><a class="permalink" href="perldiag.html#Can&#39;t-use-bareword-(%22%25s%22)-as-%25s-ref-while-%22strict-refs%22-in-use">#</a><a id="Can103"></a><a id="Cant-use-bareword-s-as-s-ref-while-strict-refs-in-use"></a>Can&#39;t use bareword (&quot;%s&quot;) as %s ref while &quot;strict refs&quot; in use</dt>
<dd>

<p>(F) Only hard references are allowed by &quot;strict refs&quot;. Symbolic references are disallowed. See <a href="perlref.html">perlref</a>.</p>

</dd>
<dt id="Can&#39;t-use-%!-because-Errno.pm-is-not-available"><a class="permalink" href="perldiag.html#Can&#39;t-use-%25!-because-Errno.pm-is-not-available">#</a><a id="Can104"></a><a id="Cant-use-because-Errno.pm-is-not-available"></a>Can&#39;t use %! because Errno.pm is not available</dt>
<dd>

<p>(F) The first time the <code>%!</code> hash is used, perl automatically loads the Errno.pm module. The Errno module is expected to tie the %! hash to provide symbolic names for <code>$!</code> errno values.</p>

</dd>
<dt id="Can&#39;t-use-both-&#39;&#39;-after-type-&#39;%c&#39;-in-%s"><a class="permalink" href="perldiag.html#Can&#39;t-use-both-&#39;&#39;-after-type-&#39;%25c&#39;-in-%25s">#</a><a id="Can&#39;t-use-both-&#39;&lt;&#39;-and-&#39;&gt;&#39;-after-type-&#39;%c&#39;-in-%s"></a><a id="Can105"></a><a id="Cant-use-both-and-after-type-c-in-s"></a>Can&#39;t use both &#39;&lt;&#39; and &#39;&gt;&#39; after type &#39;%c&#39; in %s</dt>
<dd>

<p>(F) A type cannot be forced to have both big-endian and little-endian byte-order at the same time, so this combination of modifiers is not allowed. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="Can&#39;t-use-&#39;defined(@array)&#39;-(Maybe-you-should-just-omit-the-defined()?)"><a class="permalink" href="perldiag.html#Can&#39;t-use-&#39;defined(@array)&#39;-(Maybe-you-should-just-omit-the-defined()?)">#</a><a id="Can106"></a><a id="Cant-use-defined-array-Maybe-you-should-just-omit-the-defined"></a>Can&#39;t use &#39;defined(@array)&#39; (Maybe you should just omit the defined()?)</dt>
<dd>

<p>(F) defined() is not useful on arrays because it checks for an undefined <i>scalar</i> value. If you want to see if the array is empty, just use <code>if (@array) { # not empty }</code> for example.</p>

</dd>
<dt id="Can&#39;t-use-&#39;defined(%hash)&#39;-(Maybe-you-should-just-omit-the-defined()?)"><a class="permalink" href="perldiag.html#Can&#39;t-use-&#39;defined(%25hash)&#39;-(Maybe-you-should-just-omit-the-defined()?)">#</a><a id="Can107"></a><a id="Cant-use-defined-hash-Maybe-you-should-just-omit-the-defined"></a>Can&#39;t use &#39;defined(%hash)&#39; (Maybe you should just omit the defined()?)</dt>
<dd>

<p>(F) <code>defined()</code> is not usually right on hashes.</p>

<p>Although <code>defined %hash</code> is false on a plain not-yet-used hash, it becomes true in several non-obvious circumstances, including iterators, weak references, stash names, even remaining true after <code>undef %hash</code>. These things make <code>defined %hash</code> fairly useless in practice, so it now generates a fatal error.</p>

<p>If a check for non-empty is what you wanted then just put it in boolean context (see <a href="perldata.html#Scalar-values">&quot;Scalar values&quot; in perldata</a>):</p>

<pre><code>if (%hash) {
   # not empty
}</code></pre>

<p>If you had <code>defined %Foo::Bar::QUUX</code> to check whether such a package variable exists then that&#39;s never really been reliable, and isn&#39;t a good way to enquire about the features of a package, or whether it&#39;s loaded, etc.</p>

</dd>
<dt id="Can&#39;t-use-%s-for-loop-variable"><a class="permalink" href="perldiag.html#Can&#39;t-use-%25s-for-loop-variable">#</a><a id="Can108"></a><a id="Cant-use-s-for-loop-variable"></a>Can&#39;t use %s for loop variable</dt>
<dd>

<p>(P) The parser got confused when trying to parse a <code>foreach</code> loop.</p>

</dd>
<dt id="Can&#39;t-use-global-%s-in-%s"><a class="permalink" href="perldiag.html#Can&#39;t-use-global-%25s-in-%25s">#</a><a id="Can109"></a><a id="Cant-use-global-s-in-s"></a>Can&#39;t use global %s in %s</dt>
<dd>

<p>(F) You tried to declare a magical variable as a lexical variable. This is not allowed, because the magic can be tied to only one location (namely the global variable) and it would be incredibly confusing to have variables in your program that looked like magical variables but weren&#39;t.</p>

</dd>
<dt id="Can&#39;t-use-&#39;%c&#39;-in-a-group-with-different-byte-order-in-%s"><a class="permalink" href="perldiag.html#Can&#39;t-use-&#39;%25c&#39;-in-a-group-with-different-byte-order-in-%25s">#</a><a id="Can110"></a><a id="Cant-use-c-in-a-group-with-different-byte-order-in-s"></a>Can&#39;t use &#39;%c&#39; in a group with different byte-order in %s</dt>
<dd>

<p>(F) You attempted to force a different byte-order on a type that is already inside a group with a byte-order modifier. For example you cannot force little-endianness on a type that is inside a big-endian group.</p>

</dd>
<dt id="Can&#39;t-use-&quot;my-%s&quot;-in-sort-comparison"><a class="permalink" href="perldiag.html#Can&#39;t-use-%22my-%25s%22-in-sort-comparison">#</a><a id="Can111"></a><a id="Cant-use-my-s-in-sort-comparison"></a>Can&#39;t use &quot;my %s&quot; in sort comparison</dt>
<dd>

<p>(F) The global variables $a and $b are reserved for sort comparisons. You mentioned $a or $b in the same line as the &lt;=&gt; or cmp operator, and the variable had earlier been declared as a lexical variable. Either qualify the sort variable with the package name, or rename the lexical variable.</p>

</dd>
<dt id="Can&#39;t-use-%s-ref-as-%s-ref"><a class="permalink" href="perldiag.html#Can&#39;t-use-%25s-ref-as-%25s-ref">#</a><a id="Can112"></a><a id="Cant-use-s-ref-as-s-ref"></a>Can&#39;t use %s ref as %s ref</dt>
<dd>

<p>(F) You&#39;ve mixed up your reference types. You have to dereference a reference of the type needed. You can use the ref() function to test the type of the reference, if need be.</p>

</dd>
<dt id="Can&#39;t-use-string-(&quot;%s&quot;)-as-%s-ref-while-&quot;strict-refs&quot;-in-use"><a class="permalink" href="perldiag.html#Can&#39;t-use-string-(%22%25s%22)-as-%25s-ref-while-%22strict-refs%22-in-use">#</a><a id="Can113"></a><a id="Cant-use-string-s-as-s-ref-while-strict-refs-in-use"></a>Can&#39;t use string (&quot;%s&quot;) as %s ref while &quot;strict refs&quot; in use</dt>
<dd>

</dd>
<dt id="Can&#39;t-use-string-(&quot;%s&quot;...)-as-%s-ref-while-&quot;strict-refs&quot;-in-use"><a class="permalink" href="perldiag.html#Can&#39;t-use-string-(%22%25s%22...)-as-%25s-ref-while-%22strict-refs%22-in-use">#</a><a id="Can114"></a><a id="Cant-use-string-s...-as-s-ref-while-strict-refs-in-use"></a>Can&#39;t use string (&quot;%s&quot;...) as %s ref while &quot;strict refs&quot; in use</dt>
<dd>

<p>(F) You&#39;ve told Perl to dereference a string, something which <code>use strict</code> blocks to prevent it happening accidentally. See <a href="perlref.html#Symbolic-references">&quot;Symbolic references&quot; in perlref</a>. This can be triggered by an <code>@</code> or <code>$</code> in a double-quoted string immediately before interpolating a variable, for example in <code>&quot;user @$twitter_id&quot;</code>, which says to treat the contents of <code>$twitter_id</code> as an array reference; use a <code>\</code> to have a literal <code>@</code> symbol followed by the contents of <code>$twitter_id</code>: <code>&quot;user \@$twitter_id&quot;</code>.</p>

</dd>
<dt id="Can&#39;t-use-subscript-on-%s"><a class="permalink" href="perldiag.html#Can&#39;t-use-subscript-on-%25s">#</a><a id="Can115"></a><a id="Cant-use-subscript-on-s"></a>Can&#39;t use subscript on %s</dt>
<dd>

<p>(F) The compiler tried to interpret a bracketed expression as a subscript. But to the left of the brackets was an expression that didn&#39;t look like a hash or array reference, or anything else subscriptable.</p>

</dd>
<dt id="Can&#39;t-use-\%c-to-mean-$%c-in-expression"><a class="permalink" href="perldiag.html#Can&#39;t-use-%5C%25c-to-mean-$%25c-in-expression">#</a><a id="Can116"></a><a id="Cant-use-c-to-mean-c-in-expression"></a>Can&#39;t use \%c to mean $%c in expression</dt>
<dd>

<p>(W syntax) In an ordinary expression, backslash is a unary operator that creates a reference to its argument. The use of backslash to indicate a backreference to a matched substring is valid only as part of a regular expression pattern. Trying to do this in ordinary Perl code produces a value that prints out looking like SCALAR(0xdecaf). Use the $1 form instead.</p>

</dd>
<dt id="Can&#39;t-weaken-a-nonreference"><a class="permalink" href="perldiag.html#Can&#39;t-weaken-a-nonreference">#</a><a id="Can117"></a><a id="Cant-weaken-a-nonreference"></a>Can&#39;t weaken a nonreference</dt>
<dd>

<p>(F) You attempted to weaken something that was not a reference. Only references can be weakened.</p>

</dd>
<dt id="Can&#39;t-&quot;when&quot;-outside-a-topicalizer"><a class="permalink" href="perldiag.html#Can&#39;t-%22when%22-outside-a-topicalizer">#</a><a id="Can118"></a><a id="Cant-when-outside-a-topicalizer"></a>Can&#39;t &quot;when&quot; outside a topicalizer</dt>
<dd>

<p>(F) You have used a when() block that is neither inside a <code>foreach</code> loop nor a <code>given</code> block. (Note that this error is issued on exit from the <code>when</code> block, so you won&#39;t get the error if the match fails, or if you use an explicit <code>continue</code>.)</p>

</dd>
<dt id="Can&#39;t-x=-to-read-only-value"><a class="permalink" href="perldiag.html#Can&#39;t-x=-to-read-only-value">#</a><a id="Can119"></a><a id="Cant-x-to-read-only-value"></a>Can&#39;t x= to read-only value</dt>
<dd>

<p>(F) You tried to repeat a constant value (often the undefined value) with an assignment operator, which implies modifying the value itself. Perhaps you need to copy the value to a temporary, and repeat that.</p>

</dd>
<dt id="Character-following-&quot;\c&quot;-must-be-printable-ASCII"><a class="permalink" href="perldiag.html#Character-following-%22%5Cc%22-must-be-printable-ASCII">#</a><a id="Character"></a><a id="Character-following-c-must-be-printable-ASCII"></a>Character following &quot;\c&quot; must be printable ASCII</dt>
<dd>

<p>(F) In <code>\c<i>X</i></code>, <i>X</i> must be a printable (non-control) ASCII character.</p>

<p>Note that ASCII characters that don&#39;t map to control characters are discouraged, and will generate the warning (when enabled) <a href="perldiag.html#%22%5Cc%25c%22-is-more-clearly-written-simply-as-%22%25s%22">&quot;&quot;\c%c&quot; is more clearly written simply as &quot;%s&quot;&quot;</a>.</p>

</dd>
<dt id="Character-following-\%c-must-be-&#39;{&#39;-or-a-single-character-Unicode-property-name-in-regex;-marked-by-&lt;-HERE-in-m/%s/"><a class="permalink" href="perldiag.html#Character-following-%5C%25c-must-be-&#39;%7B&#39;-or-a-single-character-Unicode-property-name-in-regex;-marked-by-%3C-HERE-in-m/%25s/">#</a><a id="Character1"></a><a id="Character-following-c-must-be-or-a-single-character-Unicode-property-name-in-regex-marked-by----HERE-in-m-s"></a>Character following \%c must be &#39;{&#39; or a single-character Unicode property name in regex; marked by &lt;-- HERE in m/%s/</dt>
<dd>

<p>(F) (In the above the <code>%c</code> is replaced by either <code>p</code> or <code>P</code>.) You specified something that isn&#39;t a legal Unicode property name. Most Unicode properties are specified by <code>\p{...}</code>. But if the name is a single character one, the braces may be omitted.</p>

</dd>
<dt id="Character-in-&#39;C&#39;-format-wrapped-in-pack"><a class="permalink" href="perldiag.html#Character-in-&#39;C&#39;-format-wrapped-in-pack">#</a><a id="Character2"></a><a id="Character-in-C-format-wrapped-in-pack"></a>Character in &#39;C&#39; format wrapped in pack</dt>
<dd>

<p>(W pack) You said</p>

<pre><code>pack(&quot;C&quot;, $x)</code></pre>

<p>where $x is either less than 0 or more than 255; the <code>&quot;C&quot;</code> format is only for encoding native operating system characters (ASCII, EBCDIC, and so on) and not for Unicode characters, so Perl behaved as if you meant</p>

<pre><code>pack(&quot;C&quot;, $x &amp; 255)</code></pre>

<p>If you actually want to pack Unicode codepoints, use the <code>&quot;U&quot;</code> format instead.</p>

</dd>
<dt id="Character-in-&#39;c&#39;-format-wrapped-in-pack"><a class="permalink" href="perldiag.html#Character-in-&#39;c&#39;-format-wrapped-in-pack">#</a><a id="Character3"></a><a id="Character-in-c-format-wrapped-in-pack"></a>Character in &#39;c&#39; format wrapped in pack</dt>
<dd>

<p>(W pack) You said</p>

<pre><code>pack(&quot;c&quot;, $x)</code></pre>

<p>where $x is either less than -128 or more than 127; the <code>&quot;c&quot;</code> format is only for encoding native operating system characters (ASCII, EBCDIC, and so on) and not for Unicode characters, so Perl behaved as if you meant</p>

<pre><code>pack(&quot;c&quot;, $x &amp; 255);</code></pre>

<p>If you actually want to pack Unicode codepoints, use the <code>&quot;U&quot;</code> format instead.</p>

</dd>
<dt id="Character-in-&#39;%c&#39;-format-wrapped-in-unpack"><a class="permalink" href="perldiag.html#Character-in-&#39;%25c&#39;-format-wrapped-in-unpack">#</a><a id="Character4"></a><a id="Character-in-c-format-wrapped-in-unpack"></a>Character in &#39;%c&#39; format wrapped in unpack</dt>
<dd>

<p>(W unpack) You tried something like</p>

<pre><code class="plaintext">unpack(&quot;H&quot;, &quot;\x{2a1}&quot;)</code></pre>

<p>where the format expects to process a byte (a character with a value below 256), but a higher value was provided instead. Perl uses the value modulus 256 instead, as if you had provided:</p>

<pre><code class="plaintext">unpack(&quot;H&quot;, &quot;\x{a1}&quot;)</code></pre>

</dd>
<dt id="Character-in-&#39;W&#39;-format-wrapped-in-pack"><a class="permalink" href="perldiag.html#Character-in-&#39;W&#39;-format-wrapped-in-pack">#</a><a id="Character5"></a><a id="Character-in-W-format-wrapped-in-pack"></a>Character in &#39;W&#39; format wrapped in pack</dt>
<dd>

<p>(W pack) You said</p>

<pre><code>pack(&quot;U0W&quot;, $x)</code></pre>

<p>where $x is either less than 0 or more than 255. However, <code>U0</code>-mode expects all values to fall in the interval [0, 255], so Perl behaved as if you meant:</p>

<pre><code>pack(&quot;U0W&quot;, $x &amp; 255)</code></pre>

</dd>
<dt id="Character(s)-in-&#39;%c&#39;-format-wrapped-in-pack"><a class="permalink" href="perldiag.html#Character(s)-in-&#39;%25c&#39;-format-wrapped-in-pack">#</a><a id="Character6"></a><a id="Character-s-in-c-format-wrapped-in-pack"></a>Character(s) in &#39;%c&#39; format wrapped in pack</dt>
<dd>

<p>(W pack) You tried something like</p>

<pre><code class="plaintext">pack(&quot;u&quot;, &quot;\x{1f3}b&quot;)</code></pre>

<p>where the format expects to process a sequence of bytes (character with a value below 256), but some of the characters had a higher value. Perl uses the character values modulus 256 instead, as if you had provided:</p>

<pre><code class="plaintext">pack(&quot;u&quot;, &quot;\x{f3}b&quot;)</code></pre>

</dd>
<dt id="Character(s)-in-&#39;%c&#39;-format-wrapped-in-unpack"><a class="permalink" href="perldiag.html#Character(s)-in-&#39;%25c&#39;-format-wrapped-in-unpack">#</a><a id="Character7"></a><a id="Character-s-in-c-format-wrapped-in-unpack"></a>Character(s) in &#39;%c&#39; format wrapped in unpack</dt>
<dd>

<p>(W unpack) You tried something like</p>

<pre><code class="plaintext">unpack(&quot;s&quot;, &quot;\x{1f3}b&quot;)</code></pre>

<p>where the format expects to process a sequence of bytes (character with a value below 256), but some of the characters had a higher value. Perl uses the character values modulus 256 instead, as if you had provided:</p>

<pre><code class="plaintext">unpack(&quot;s&quot;, &quot;\x{f3}b&quot;)</code></pre>

</dd>
<dt id="charnames-alias-definitions-may-not-contain-a-sequence-of-multiple-spaces;-marked-by-in-%s"><a class="permalink" href="perldiag.html#charnames-alias-definitions-may-not-contain-a-sequence-of-multiple-spaces;-marked-by-in-%25s">#</a><a id="charnames-alias-definitions-may-not-contain-a-sequence-of-multiple-spaces;-marked-by-&lt;-HERE-in-%s"></a><a id="charnames"></a><a id="charnames-alias-definitions-may-not-contain-a-sequence-of-multiple-spaces-marked-by----HERE-in-s"></a>charnames alias definitions may not contain a sequence of multiple spaces; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in %s</dt>
<dd>

<p>(F) You defined a character name which had multiple space characters in a row. Change them to single spaces. Usually these names are defined in the <code>:alias</code> import argument to <code>use charnames</code>, but they could be defined by a translator installed into <code>$^H{charnames}</code>. See <a href="charnames.html#CUSTOM-ALIASES">&quot;CUSTOM ALIASES&quot; in charnames</a>.</p>

</dd>
<dt id="chdir()-on-unopened-filehandle-%s"><a class="permalink" href="perldiag.html#chdir()-on-unopened-filehandle-%25s">#</a><a id="chdir"></a><a id="chdir-on-unopened-filehandle-s"></a>chdir() on unopened filehandle %s</dt>
<dd>

<p>(W unopened) You tried chdir() on a filehandle that was never opened.</p>

</dd>
<dt id="&quot;\c%c&quot;-is-more-clearly-written-simply-as-&quot;%s&quot;"><a class="permalink" href="perldiag.html#%22%5Cc%25c%22-is-more-clearly-written-simply-as-%22%25s%22">#</a><a id="c-c-is-more-clearly-written-simply-as-s"></a>&quot;\c%c&quot; is more clearly written simply as &quot;%s&quot;</dt>
<dd>

<p>(W syntax) The <code>\c<i>X</i></code> construct is intended to be a way to specify non-printable characters. You used it for a printable one, which is better written as simply itself, perhaps preceded by a backslash for non-word characters. Doing it the way you did is not portable between ASCII and EBCDIC platforms.</p>

</dd>
<dt id="Cloning-substitution-context-is-unimplemented"><a class="permalink" href="perldiag.html#Cloning-substitution-context-is-unimplemented">#</a><a id="Cloning"></a>Cloning substitution context is unimplemented</dt>
<dd>

<p>(F) Creating a new thread inside the <code>s///</code> operator is not supported.</p>

</dd>
<dt id="closedir()-attempted-on-invalid-dirhandle-%s"><a class="permalink" href="perldiag.html#closedir()-attempted-on-invalid-dirhandle-%25s">#</a><a id="closedir"></a><a id="closedir-attempted-on-invalid-dirhandle-s"></a>closedir() attempted on invalid dirhandle %s</dt>
<dd>

<p>(W io) The dirhandle you tried to close is either closed or not really a dirhandle. Check your control flow.</p>

</dd>
<dt id="close()-on-unopened-filehandle-%s"><a class="permalink" href="perldiag.html#close()-on-unopened-filehandle-%25s">#</a><a id="close"></a><a id="close-on-unopened-filehandle-s"></a>close() on unopened filehandle %s</dt>
<dd>

<p>(W unopened) You tried to close a filehandle that was never opened.</p>

</dd>
<dt id="Closure-prototype-called"><a class="permalink" href="perldiag.html#Closure-prototype-called">#</a><a id="Closure"></a>Closure prototype called</dt>
<dd>

<p>(F) If a closure has attributes, the subroutine passed to an attribute handler is the prototype that is cloned when a new closure is created. This subroutine cannot be called.</p>

</dd>
<dt id="\C-no-longer-supported-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#%5CC-no-longer-supported-in-regex;-marked-by-in-m/%25s/">#</a><a id="\C-no-longer-supported-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="C-no-longer-supported-in-regex-marked-by----HERE-in-m-s"></a>\C no longer supported in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) The \C character class used to allow a match of single byte within a multi-byte utf-8 character, but was removed in v5.24 as it broke encapsulation and its implementation was extremely buggy. If you really need to process the individual bytes, you probably want to convert your string to one where each underlying byte is stored as a character, with utf8::encode().</p>

</dd>
<dt id="Code-missing-after-&#39;/&#39;"><a class="permalink" href="perldiag.html#Code-missing-after-&#39;/&#39;">#</a><a id="Code"></a><a id="Code-missing-after"></a>Code missing after &#39;/&#39;</dt>
<dd>

<p>(F) You had a (sub-)template that ends with a &#39;/&#39;. There must be another template code following the slash. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="Code-point-0x%X-is-not-Unicode,-and-not-portable"><a class="permalink" href="perldiag.html#Code-point-0x%25X-is-not-Unicode,-and-not-portable">#</a><a id="Code1"></a><a id="Code-point-0x-X-is-not-Unicode-and-not-portable"></a>Code point 0x%X is not Unicode, and not portable</dt>
<dd>

<p>(S non_unicode portable) You had a code point that has never been in any standard, so it is likely that languages other than Perl will NOT understand it. This code point also will not fit in a 32-bit word on ASCII platforms and therefore is non-portable between systems.</p>

<p>At one time, it was legal in some standards to have code points up to 0x7FFF_FFFF, but not higher, and this code point is higher.</p>

<p>Acceptance of these code points is a Perl extension, and you should expect that nothing other than Perl can handle them; Perl itself on EBCDIC platforms before v5.24 does not handle them.</p>

<p>Perl also makes no guarantees that the representation of these code points won&#39;t change at some point in the future, say when machines become available that have larger than a 64-bit word. At that time, files containing any of these, written by an older Perl might require conversion before being readable by a newer Perl.</p>

</dd>
<dt id="Code-point-0x%X-is-not-Unicode,-may-not-be-portable"><a class="permalink" href="perldiag.html#Code-point-0x%25X-is-not-Unicode,-may-not-be-portable">#</a><a id="Code2"></a><a id="Code-point-0x-X-is-not-Unicode-may-not-be-portable"></a>Code point 0x%X is not Unicode, may not be portable</dt>
<dd>

<p>(S non_unicode) You had a code point above the Unicode maximum of U+10FFFF.</p>

<p>Perl allows strings to contain a superset of Unicode code points, but these may not be accepted by other languages/systems. Further, even if these languages/systems accept these large code points, they may have chosen a different representation for them than the UTF-8-like one that Perl has, which would mean files are not exchangeable between them and Perl.</p>

<p>On EBCDIC platforms, code points above 0x3FFF_FFFF have a different representation in Perl v5.24 than before, so any file containing these that was written before that version will require conversion before being readable by a later Perl.</p>

</dd>
<dt id="%s:-Command-not-found"><a class="permalink" href="perldiag.html#%25s:-Command-not-found">#</a><a id="s:-Command-not-found"></a>%s: Command not found</dt>
<dd>

<p>(A) You&#39;ve accidentally run your script through <b>csh</b> or another shell instead of Perl. Check the #! line, or manually feed your script into Perl yourself. The #! line at the top of your file could look like</p>

<pre><code class="plaintext">#!/usr/bin/perl</code></pre>

</dd>
<dt id="%s:-command-not-found"><a class="permalink" href="perldiag.html#%25s:-command-not-found">#</a><a id="s:-command-not-found"></a>%s: command not found</dt>
<dd>

<p>(A) You&#39;ve accidentally run your script through <b>bash</b> or another shell instead of Perl. Check the #! line, or manually feed your script into Perl yourself. The #! line at the top of your file could look like</p>

<pre><code class="plaintext">#!/usr/bin/perl</code></pre>

</dd>
<dt id="%s:-command-not-found:-%s"><a class="permalink" href="perldiag.html#%25s:-command-not-found:-%25s">#</a><a id="s:-command-not-found:-s"></a>%s: command not found: %s</dt>
<dd>

<p>(A) You&#39;ve accidentally run your script through <b>zsh</b> or another shell instead of Perl. Check the #! line, or manually feed your script into Perl yourself. The #! line at the top of your file could look like</p>

<pre><code class="plaintext">#!/usr/bin/perl</code></pre>

</dd>
<dt id="Compilation-failed-in-require"><a class="permalink" href="perldiag.html#Compilation-failed-in-require">#</a><a id="Compilation"></a>Compilation failed in require</dt>
<dd>

<p>(F) Perl could not compile a file specified in a <code>require</code> statement. Perl uses this generic message when none of the errors that it encountered were severe enough to halt compilation immediately.</p>

</dd>
<dt id="Complex-regular-subexpression-recursion-limit-(%d)-exceeded"><a class="permalink" href="perldiag.html#Complex-regular-subexpression-recursion-limit-(%25d)-exceeded">#</a><a id="Complex"></a><a id="Complex-regular-subexpression-recursion-limit-d-exceeded"></a>Complex regular subexpression recursion limit (%d) exceeded</dt>
<dd>

<p>(W regexp) The regular expression engine uses recursion in complex situations where back-tracking is required. Recursion depth is limited to 32766, or perhaps less in architectures where the stack cannot grow arbitrarily. (&quot;Simple&quot; and &quot;medium&quot; situations are handled without recursion and are not subject to a limit.) Try shortening the string under examination; looping in Perl code (e.g. with <code>while</code>) rather than in the regular expression engine; or rewriting the regular expression so that it is simpler or backtracks less. (See <a href="perlfaq2.html">perlfaq2</a> for information on <i>Mastering Regular Expressions</i>.)</p>

</dd>
<dt id="connect()-on-closed-socket-%s"><a class="permalink" href="perldiag.html#connect()-on-closed-socket-%25s">#</a><a id="connect"></a><a id="connect-on-closed-socket-s"></a>connect() on closed socket %s</dt>
<dd>

<p>(W closed) You tried to do a connect on a closed socket. Did you forget to check the return value of your socket() call? See <a href="perlfunc.html#connect">&quot;connect&quot; in perlfunc</a>.</p>

</dd>
<dt id="Constant(%s):-Call-to-&amp;{$^H{%s}}-did-not-return-a-defined-value"><a class="permalink" href="perldiag.html#Constant(%25s):-Call-to-&amp;%7B$%5EH%7B%25s%7D%7D-did-not-return-a-defined-value">#</a><a id="Constant"></a><a id="Constant-s-:-Call-to-H-s-did-not-return-a-defined-value"></a>Constant(%s): Call to &amp;{$^H{%s}} did not return a defined value</dt>
<dd>

<p>(F) The subroutine registered to handle constant overloading (see <a href="overload.html">overload</a>) or a custom charnames handler (see <a href="charnames.html#CUSTOM-TRANSLATORS">&quot;CUSTOM TRANSLATORS&quot; in charnames</a>) returned an undefined value.</p>

</dd>
<dt id="Constant(%s):-$^H{%s}-is-not-defined"><a class="permalink" href="perldiag.html#Constant(%25s):-$%5EH%7B%25s%7D-is-not-defined">#</a><a id="Constant1"></a><a id="Constant-s-:-H-s-is-not-defined"></a>Constant(%s): $^H{%s} is not defined</dt>
<dd>

<p>(F) The parser found inconsistencies while attempting to define an overloaded constant. Perhaps you forgot to load the corresponding <a href="overload.html">overload</a> pragma?</p>

</dd>
<dt id="Constant-is-not-%s-reference"><a class="permalink" href="perldiag.html#Constant-is-not-%25s-reference">#</a><a id="Constant2"></a><a id="Constant-is-not-s-reference"></a>Constant is not %s reference</dt>
<dd>

<p>(F) A constant value (perhaps declared using the <code>use constant</code> pragma) is being dereferenced, but it amounts to the wrong type of reference. The message indicates the type of reference that was expected. This usually indicates a syntax error in dereferencing the constant value. See <a href="perlsub.html#Constant-Functions">&quot;Constant Functions&quot; in perlsub</a> and <a href="constant.html">constant</a>.</p>

</dd>
<dt id="Constants-from-lexical-variables-potentially-modified-elsewhere-are-no-longer-permitted"><a class="permalink" href="perldiag.html#Constants-from-lexical-variables-potentially-modified-elsewhere-are-no-longer-permitted">#</a><a id="Constants"></a>Constants from lexical variables potentially modified elsewhere are no longer permitted</dt>
<dd>

<p>(F) You wrote something like</p>

<pre><code>my $var;
$sub = sub () { $var };</code></pre>

<p>but $var is referenced elsewhere and could be modified after the <code>sub</code> expression is evaluated. Either it is explicitly modified elsewhere (<code>$var = 3</code>) or it is passed to a subroutine or to an operator like <code>printf</code> or <code>map</code>, which may or may not modify the variable.</p>

<p>Traditionally, Perl has captured the value of the variable at that point and turned the subroutine into a constant eligible for inlining. In those cases where the variable can be modified elsewhere, this breaks the behavior of closures, in which the subroutine captures the variable itself, rather than its value, so future changes to the variable are reflected in the subroutine&#39;s return value.</p>

<p>This usage was deprecated, and as of Perl 5.32 is no longer allowed, making it possible to change the behavior in the future.</p>

<p>If you intended for the subroutine to be eligible for inlining, then make sure the variable is not referenced elsewhere, possibly by copying it:</p>

<pre><code>my $var2 = $var;
$sub = sub () { $var2 };</code></pre>

<p>If you do want this subroutine to be a closure that reflects future changes to the variable that it closes over, add an explicit <code>return</code>:</p>

<pre><code>my $var;
$sub = sub () { return $var };</code></pre>

</dd>
<dt id="Constant-subroutine-%s-redefined"><a class="permalink" href="perldiag.html#Constant-subroutine-%25s-redefined">#</a><a id="Constant3"></a><a id="Constant-subroutine-s-redefined"></a>Constant subroutine %s redefined</dt>
<dd>

<p>(W redefine)(S) You redefined a subroutine which had previously been eligible for inlining. See <a href="perlsub.html#Constant-Functions">&quot;Constant Functions&quot; in perlsub</a> for commentary and workarounds.</p>

</dd>
<dt id="Constant-subroutine-%s-undefined"><a class="permalink" href="perldiag.html#Constant-subroutine-%25s-undefined">#</a><a id="Constant4"></a><a id="Constant-subroutine-s-undefined"></a>Constant subroutine %s undefined</dt>
<dd>

<p>(W misc) You undefined a subroutine which had previously been eligible for inlining. See <a href="perlsub.html#Constant-Functions">&quot;Constant Functions&quot; in perlsub</a> for commentary and workarounds.</p>

</dd>
<dt id="Constant(%s)-unknown"><a class="permalink" href="perldiag.html#Constant(%25s)-unknown">#</a><a id="Constant5"></a><a id="Constant-s-unknown"></a>Constant(%s) unknown</dt>
<dd>

<p>(F) The parser found inconsistencies either while attempting to define an overloaded constant, or when trying to find the character name specified in the <code>\N{...}</code> escape. Perhaps you forgot to load the corresponding <a href="overload.html">overload</a> pragma?</p>

</dd>
<dt id=":const-is-experimental"><a class="permalink" href="perldiag.html#:const-is-experimental">#</a><a id="const-is-experimental"></a>:const is experimental</dt>
<dd>

<p>(S experimental::const_attr) The &quot;const&quot; attribute is experimental. If you want to use the feature, disable the warning with <code>no warnings &#39;experimental::const_attr&#39;</code>, but know that in doing so you are taking the risk that your code may break in a future Perl version.</p>

</dd>
<dt id=":const-is-not-permitted-on-named-subroutines"><a class="permalink" href="perldiag.html#:const-is-not-permitted-on-named-subroutines">#</a><a id="const-is-not-permitted-on-named-subroutines"></a>:const is not permitted on named subroutines</dt>
<dd>

<p>(F) The &quot;const&quot; attribute causes an anonymous subroutine to be run and its value captured at the time that it is cloned. Named subroutines are not cloned like this, so the attribute does not make sense on them.</p>

</dd>
<dt id="Copy-method-did-not-return-a-reference"><a class="permalink" href="perldiag.html#Copy-method-did-not-return-a-reference">#</a><a id="Copy"></a>Copy method did not return a reference</dt>
<dd>

<p>(F) The method which overloads &quot;=&quot; is buggy. See <a href="overload.html#Copy-Constructor">&quot;Copy Constructor&quot; in overload</a>.</p>

</dd>
<dt id="&amp;CORE::%s-cannot-be-called-directly"><a class="permalink" href="perldiag.html#&amp;CORE::%25s-cannot-be-called-directly">#</a><a id="CORE::-s-cannot-be-called-directly"></a>&amp;CORE::%s cannot be called directly</dt>
<dd>

<p>(F) You tried to call a subroutine in the <code>CORE::</code> namespace with <code>&amp;foo</code> syntax or through a reference. Some subroutines in this package cannot yet be called that way, but must be called as barewords. Something like this will work:</p>

<pre><code>BEGIN { *shove = \&amp;CORE::push; }
shove @array, 1,2,3; # pushes on to @array</code></pre>

</dd>
<dt id="CORE::%s-is-not-a-keyword"><a class="permalink" href="perldiag.html#CORE::%25s-is-not-a-keyword">#</a><a id="CORE"></a><a id="CORE::-s-is-not-a-keyword"></a>CORE::%s is not a keyword</dt>
<dd>

<p>(F) The CORE:: namespace is reserved for Perl keywords.</p>

</dd>
<dt id="Corrupted-regexp-opcode-%d-&gt;-%d"><a class="permalink" href="perldiag.html#Corrupted-regexp-opcode-%25d-%3E-%25d">#</a><a id="Corrupted"></a><a id="Corrupted-regexp-opcode-d-d"></a>Corrupted regexp opcode %d &gt; %d</dt>
<dd>

<p>(P) This is either an error in Perl, or, if you&#39;re using one, your <a href="perlreapi.html">custom regular expression engine</a>. If not the latter, report the problem to <a href="https://github.com/Perl/perl5/issues">https://github.com/Perl/perl5/issues</a>.</p>

</dd>
<dt id="corrupted-regexp-pointers"><a class="permalink" href="perldiag.html#corrupted-regexp-pointers">#</a><a id="corrupted"></a>corrupted regexp pointers</dt>
<dd>

<p>(P) The regular expression engine got confused by what the regular expression compiler gave it.</p>

</dd>
<dt id="corrupted-regexp-program"><a class="permalink" href="perldiag.html#corrupted-regexp-program">#</a><a id="corrupted1"></a>corrupted regexp program</dt>
<dd>

<p>(P) The regular expression engine got passed a regexp program without a valid magic number.</p>

</dd>
<dt id="Corrupt-malloc-ptr-0x%x-at-0x%x"><a class="permalink" href="perldiag.html#Corrupt-malloc-ptr-0x%25x-at-0x%25x">#</a><a id="Corrupt"></a><a id="Corrupt-malloc-ptr-0x-x-at-0x-x"></a>Corrupt malloc ptr 0x%x at 0x%x</dt>
<dd>

<p>(P) The malloc package that comes with Perl had an internal failure.</p>

</dd>
<dt id="Count-after-length/code-in-unpack"><a class="permalink" href="perldiag.html#Count-after-length/code-in-unpack">#</a><a id="Count"></a><a id="Count-after-length-code-in-unpack"></a>Count after length/code in unpack</dt>
<dd>

<p>(F) You had an unpack template indicating a counted-length string, but you have also specified an explicit size for the string. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="Declaring-references-is-experimental"><a class="permalink" href="perldiag.html#Declaring-references-is-experimental">#</a><a id="Declaring"></a>Declaring references is experimental</dt>
<dd>

<p>(S experimental::declared_refs) This warning is emitted if you use a reference constructor on the right-hand side of <code>my</code>, <code>state</code>, <code>our</code>, or <code>local</code>. Simply suppress the warning if you want to use the feature, but know that in doing so you are taking the risk of using an experimental feature which may change or be removed in a future Perl version:</p>

<pre><code>no warnings &quot;experimental::declared_refs&quot;;
use feature &quot;declared_refs&quot;;
$fooref = my \$foo;</code></pre>

</dd>
<dt id="Deep-recursion-on-anonymous-subroutine"><a class="permalink" href="perldiag.html#Deep-recursion-on-anonymous-subroutine">#</a><a id="Deep"></a>Deep recursion on anonymous subroutine</dt>
<dd>

</dd>
<dt id="Deep-recursion-on-subroutine-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Deep-recursion-on-subroutine-%22%25s%22">#</a><a id="Deep1"></a><a id="Deep-recursion-on-subroutine-s"></a>Deep recursion on subroutine &quot;%s&quot;</dt>
<dd>

<p>(W recursion) This subroutine has called itself (directly or indirectly) 100 times more than it has returned. This probably indicates an infinite recursion, unless you&#39;re writing strange benchmark programs, in which case it indicates something else.</p>

<p>This threshold can be changed from 100, by recompiling the <i>perl</i> binary, setting the C pre-processor macro <code>PERL_SUB_DEPTH_WARN</code> to the desired value.</p>

</dd>
<dt id="(?(DEFINE)....)-does-not-allow-branches-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#(?(DEFINE)....)-does-not-allow-branches-in-regex;-marked-by-in-m/%25s/">#</a><a id="(?(DEFINE)....)-does-not-allow-branches-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="DEFINE-....-does-not-allow-branches-in-regex-marked-by----HERE-in-m-s"></a>(?(DEFINE)....) does not allow branches in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You used something like <code>(?(DEFINE)...|..)</code> which is illegal. The most likely cause of this error is that you left out a parenthesis inside of the <code>....</code> part.</p>

<p>The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered.</p>

</dd>
<dt id="%s-defines-neither-package-nor-VERSION-version-check-failed"><a class="permalink" href="perldiag.html#%25s-defines-neither-package-nor-VERSION-version-check-failed">#</a><a id="s-defines-neither-package-nor-VERSION--version-check-failed"></a>%s defines neither package nor VERSION--version check failed</dt>
<dd>

<p>(F) You said something like &quot;use Module 42&quot; but in the Module file there are neither package declarations nor a <code>$VERSION</code>.</p>

</dd>
<dt id="delete-argument-is-not-a-HASH-or-ARRAY-element-or-slice"><a class="permalink" href="perldiag.html#delete-argument-is-not-a-HASH-or-ARRAY-element-or-slice">#</a><a id="delete"></a>delete argument is not a HASH or ARRAY element or slice</dt>
<dd>

<p>(F) The argument to <code>delete</code> must be either a hash or array element, such as:</p>

<pre><code>$foo{$bar}
$ref-&gt;{&quot;susie&quot;}[12]</code></pre>

<p>or a hash or array slice, such as:</p>

<pre><code>@foo[$bar, $baz, $xyzzy]
$ref-&gt;[12]-&gt;@{&quot;susie&quot;, &quot;queue&quot;}</code></pre>

<p>or a hash key/value or array index/value slice, such as:</p>

<pre><code>%foo[$bar, $baz, $xyzzy]
$ref-&gt;[12]-&gt;%{&quot;susie&quot;, &quot;queue&quot;}</code></pre>

</dd>
<dt id="Delimiter-for-here-document-is-too-long"><a class="permalink" href="perldiag.html#Delimiter-for-here-document-is-too-long">#</a><a id="Delimiter"></a>Delimiter for here document is too long</dt>
<dd>

<p>(F) In a here document construct like <code>&lt;&lt;FOO</code>, the label <code>FOO</code> is too long for Perl to handle. You have to be seriously twisted to write code that triggers this error.</p>

</dd>
<dt id="Deprecated-use-of-my()-in-false-conditional.-This-will-be-a-fatal-error-in-Perl-5.30"><a class="permalink" href="perldiag.html#Deprecated-use-of-my()-in-false-conditional.-This-will-be-a-fatal-error-in-Perl-5.30">#</a><a id="Deprecated"></a><a id="Deprecated-use-of-my-in-false-conditional.-This-will-be-a-fatal-error-in-Perl-5.30"></a>Deprecated use of my() in false conditional. This will be a fatal error in Perl 5.30</dt>
<dd>

<p>(D deprecated) You used a declaration similar to <code>my $x if 0</code>. There has been a long-standing bug in Perl that causes a lexical variable not to be cleared at scope exit when its declaration includes a false conditional. Some people have exploited this bug to achieve a kind of static variable. Since we intend to fix this bug, we don&#39;t want people relying on this behavior. You can achieve a similar static effect by declaring the variable in a separate block outside the function, eg</p>

<pre><code>sub f { my $x if 0; return $x++ }</code></pre>

<p>becomes</p>

<pre><code>{ my $x; sub f { return $x++ } }</code></pre>

<p>Beginning with perl 5.10.0, you can also use <code>state</code> variables to have lexicals that are initialized only once (see <a href="feature.html">feature</a>):</p>

<pre><code>sub f { state $x; return $x++ }</code></pre>

<p>This use of <code>my()</code> in a false conditional has been deprecated since Perl 5.10, and it will become a fatal error in Perl 5.30.</p>

</dd>
<dt id="DESTROY-created-new-reference-to-dead-object-&#39;%s&#39;"><a class="permalink" href="perldiag.html#DESTROY-created-new-reference-to-dead-object-&#39;%25s&#39;">#</a><a id="DESTROY"></a><a id="DESTROY-created-new-reference-to-dead-object-s"></a>DESTROY created new reference to dead object &#39;%s&#39;</dt>
<dd>

<p>(F) A DESTROY() method created a new reference to the object which is just being DESTROYed. Perl is confused, and prefers to abort rather than to create a dangling reference.</p>

</dd>
<dt id="Did-not-produce-a-valid-header"><a class="permalink" href="perldiag.html#Did-not-produce-a-valid-header">#</a><a id="Did"></a>Did not produce a valid header</dt>
<dd>

<p>See <a href="perldiag.html#500-Server-error">&quot;500 Server error&quot;</a>.</p>

</dd>
<dt id="%s-did-not-return-a-true-value"><a class="permalink" href="perldiag.html#%25s-did-not-return-a-true-value">#</a><a id="s-did-not-return-a-true-value"></a>%s did not return a true value</dt>
<dd>

<p>(F) A required (or used) file must return a true value to indicate that it compiled correctly and ran its initialization code correctly. It&#39;s traditional to end such a file with a &quot;1;&quot;, though any true value would do. See <a href="perlfunc.html#require">&quot;require&quot; in perlfunc</a>.</p>

</dd>
<dt id="(Did-you-mean-&amp;%s-instead?)"><a class="permalink" href="perldiag.html#(Did-you-mean-&amp;%25s-instead?)">#</a><a id="Did-you-mean-s-instead"></a>(Did you mean &amp;%s instead?)</dt>
<dd>

<p>(W misc) You probably referred to an imported subroutine &amp;FOO as $FOO or some such.</p>

</dd>
<dt id="(Did-you-mean-&quot;local&quot;-instead-of-&quot;our&quot;?)"><a class="permalink" href="perldiag.html#(Did-you-mean-%22local%22-instead-of-%22our%22?)">#</a><a id="Did-you-mean-local-instead-of-our"></a>(Did you mean &quot;local&quot; instead of &quot;our&quot;?)</dt>
<dd>

<p>(W shadow) Remember that &quot;our&quot; does not localize the declared global variable. You have declared it again in the same lexical scope, which seems superfluous.</p>

</dd>
<dt id="(Did-you-mean-$-or-@-instead-of-%?)"><a class="permalink" href="perldiag.html#(Did-you-mean-$-or-@-instead-of-%25?)">#</a><a id="Did-you-mean-or-instead-of"></a>(Did you mean $ or @ instead of %?)</dt>
<dd>

<p>(W) You probably said %hash{$key} when you meant $hash{$key} or @hash{@keys}. On the other hand, maybe you just meant %hash and got carried away.</p>

</dd>
<dt id="Died"><a class="permalink" href="perldiag.html#Died">#</a>Died</dt>
<dd>

<p>(F) You passed die() an empty string (the equivalent of <code>die &quot;&quot;</code>) or you called it with no args and <code>$@</code> was empty.</p>

</dd>
<dt id="Document-contains-no-data"><a class="permalink" href="perldiag.html#Document-contains-no-data">#</a><a id="Document"></a>Document contains no data</dt>
<dd>

<p>See <a href="perldiag.html#500-Server-error">&quot;500 Server error&quot;</a>.</p>

</dd>
<dt id="%s-does-not-define-%s::VERSION-version-check-failed"><a class="permalink" href="perldiag.html#%25s-does-not-define-%25s::VERSION-version-check-failed">#</a><a id="s-does-not-define-s::VERSION--version-check-failed"></a>%s does not define %s::VERSION--version check failed</dt>
<dd>

<p>(F) You said something like &quot;use Module 42&quot; but the Module did not define a <code>$VERSION</code>.</p>

</dd>
<dt id="&#39;/&#39;-does-not-take-a-repeat-count"><a class="permalink" href="perldiag.html#&#39;/&#39;-does-not-take-a-repeat-count">#</a><a id="does-not-take-a-repeat-count"></a>&#39;/&#39; does not take a repeat count</dt>
<dd>

<p>(F) You cannot put a repeat count of any kind right after the &#39;/&#39; code. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="do-&quot;%s&quot;-failed,-&#39;.&#39;-is-no-longer-in-@INC;-did-you-mean-do-&quot;./%s&quot;?"><a class="permalink" href="perldiag.html#do-%22%25s%22-failed,-&#39;.&#39;-is-no-longer-in-@INC;-did-you-mean-do-%22./%25s%22?">#</a><a id="do"></a><a id="do-s-failed-.-is-no-longer-in-INC-did-you-mean-do-.-s"></a>do &quot;%s&quot; failed, &#39;.&#39; is no longer in @INC; did you mean do &quot;./%s&quot;?</dt>
<dd>

<p>(D deprecated) Previously <code> do &quot;somefile&quot;; </code> would search the current directory for the specified file. Since perl v5.26.0, <i>.</i> has been removed from <code>@INC</code> by default, so this is no longer true. To search the current directory (and only the current directory) you can write <code> do &quot;./somefile&quot;; </code>.</p>

</dd>
<dt id="Don&#39;t-know-how-to-get-file-name"><a class="permalink" href="perldiag.html#Don&#39;t-know-how-to-get-file-name">#</a><a id="Don"></a><a id="Dont-know-how-to-get-file-name"></a>Don&#39;t know how to get file name</dt>
<dd>

<p>(P) <code>PerlIO_getname</code>, a perl internal I/O function specific to VMS, was somehow called on another platform. This should not happen.</p>

</dd>
<dt id="Don&#39;t-know-how-to-handle-magic-of-type-\%o"><a class="permalink" href="perldiag.html#Don&#39;t-know-how-to-handle-magic-of-type-%5C%25o">#</a><a id="Don1"></a><a id="Dont-know-how-to-handle-magic-of-type-o"></a>Don&#39;t know how to handle magic of type \%o</dt>
<dd>

<p>(P) The internal handling of magical variables has been cursed.</p>

</dd>
<dt id="do_study:-out-of-memory"><a class="permalink" href="perldiag.html#do_study:-out-of-memory">#</a><a id="do_study"></a>do_study: out of memory</dt>
<dd>

<p>(P) This should have been caught by safemalloc() instead.</p>

</dd>
<dt id="(Do-you-need-to-predeclare-%s?)"><a class="permalink" href="perldiag.html#(Do-you-need-to-predeclare-%25s?)">#</a><a id="Do-you-need-to-predeclare-s"></a>(Do you need to predeclare %s?)</dt>
<dd>

<p>(S syntax) This is an educated guess made in conjunction with the message &quot;%s found where operator expected&quot;. It often means a subroutine or module name is being referenced that hasn&#39;t been declared yet. This may be because of ordering problems in your file, or because of a missing &quot;sub&quot;, &quot;package&quot;, &quot;require&quot;, or &quot;use&quot; statement. If you&#39;re referencing something that isn&#39;t defined yet, you don&#39;t actually have to define the subroutine or package before the current location. You can use an empty &quot;sub foo;&quot; or &quot;package FOO;&quot; to enter a &quot;forward&quot; declaration.</p>

</dd>
<dt id="dump()-must-be-written-as-CORE::dump()-as-of-Perl-5.30"><a class="permalink" href="perldiag.html#dump()-must-be-written-as-CORE::dump()-as-of-Perl-5.30">#</a><a id="dump"></a><a id="dump-must-be-written-as-CORE::dump-as-of-Perl-5.30"></a>dump() must be written as CORE::dump() as of Perl 5.30</dt>
<dd>

<p>(F) You used the obsolete <code>dump()</code> built-in function. That was deprecated in Perl 5.8.0. As of Perl 5.30 it must be written in fully qualified format: <code>CORE::dump()</code>.</p>

<p>See <a href="perlfunc.html#dump">&quot;dump&quot; in perlfunc</a>.</p>

</dd>
<dt id="dump-is-not-supported"><a class="permalink" href="perldiag.html#dump-is-not-supported">#</a><a id="dump1"></a>dump is not supported</dt>
<dd>

<p>(F) Your machine doesn&#39;t support dump/undump.</p>

</dd>
<dt id="Duplicate-free()-ignored"><a class="permalink" href="perldiag.html#Duplicate-free()-ignored">#</a><a id="Duplicate"></a><a id="Duplicate-free-ignored"></a>Duplicate free() ignored</dt>
<dd>

<p>(S malloc) An internal routine called free() on something that had already been freed.</p>

</dd>
<dt id="Duplicate-modifier-&#39;%c&#39;-after-&#39;%c&#39;-in-%s"><a class="permalink" href="perldiag.html#Duplicate-modifier-&#39;%25c&#39;-after-&#39;%25c&#39;-in-%25s">#</a><a id="Duplicate1"></a><a id="Duplicate-modifier-c-after-c-in-s"></a>Duplicate modifier &#39;%c&#39; after &#39;%c&#39; in %s</dt>
<dd>

<p>(W unpack) You have applied the same modifier more than once after a type in a pack template. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="elseif-should-be-elsif"><a class="permalink" href="perldiag.html#elseif-should-be-elsif">#</a><a id="elseif"></a>elseif should be elsif</dt>
<dd>

<p>(S syntax) There is no keyword &quot;elseif&quot; in Perl because Larry thinks it&#39;s ugly. Your code will be interpreted as an attempt to call a method named &quot;elseif&quot; for the class returned by the following block. This is unlikely to be what you want.</p>

</dd>
<dt id="Empty-\%c-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Empty-%5C%25c-in-regex;-marked-by-in-m/%25s/">#</a><a id="Empty-\%c-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Empty"></a><a id="Empty-c-in-regex-marked-by----HERE-in-m-s"></a>Empty \%c in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

</dd>
<dt id="Empty-\%c{}"><a class="permalink" href="perldiag.html#Empty-%5C%25c%7B%7D">#</a><a id="Empty1"></a><a id="Empty-c"></a>Empty \%c{}</dt>
<dd>

</dd>
<dt id="Empty-\%c{}-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Empty-%5C%25c%7B%7D-in-regex;-marked-by-in-m/%25s/">#</a><a id="Empty-\%c{}-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Empty2"></a><a id="Empty-c-in-regex-marked-by----HERE-in-m-s1"></a>Empty \%c{} in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You used something like <code>\b{}</code>, <code>\B{}</code>, <code>\o{}</code>, <code>\p</code>, <code>\P</code>, or <code>\x</code> without specifying anything for it to operate on.</p>

<p>Unfortunately, for backwards compatibility reasons, an empty <code>\x</code> is legal outside <span style="white-space: nowrap;"><code>use re &#39;strict&#39;</code></span> and expands to a NUL character.</p>

</dd>
<dt id="Empty-(?)-without-any-modifiers-in-regex;-marked-by-&lt;-HERE-in-m/%s/"><a class="permalink" href="perldiag.html#Empty-(?)-without-any-modifiers-in-regex;-marked-by-%3C-HERE-in-m/%25s/">#</a><a id="Empty3"></a><a id="Empty-without-any-modifiers-in-regex-marked-by----HERE-in-m-s"></a>Empty (?) without any modifiers in regex; marked by &lt;-- HERE in m/%s/</dt>
<dd>

<p>(W regexp) (only under <code><span style="white-space: nowrap;">use re &#39;strict&#39;</span></code>) <code>(?)</code> does nothing, so perhaps this is a typo.</p>

</dd>
<dt id="${^ENCODING}-is-no-longer-supported"><a class="permalink" href="perldiag.html#$%7B%5EENCODING%7D-is-no-longer-supported">#</a><a id="ENCODING-is-no-longer-supported"></a>${^ENCODING} is no longer supported</dt>
<dd>

<p>(F) The special variable <code>${^ENCODING}</code>, formerly used to implement the <code>encoding</code> pragma, is no longer supported as of Perl 5.26.0.</p>

<p>Setting it to anything other than <code>undef</code> is a fatal error as of Perl 5.28.</p>

</dd>
<dt id="entering-effective-%s-failed"><a class="permalink" href="perldiag.html#entering-effective-%25s-failed">#</a><a id="entering"></a><a id="entering-effective-s-failed"></a>entering effective %s failed</dt>
<dd>

<p>(F) While under the <code>use filetest</code> pragma, switching the real and effective uids or gids failed.</p>

</dd>
<dt id="%ENV-is-aliased-to-%s"><a class="permalink" href="perldiag.html#%25ENV-is-aliased-to-%25s">#</a><a id="ENV-is-aliased-to-s"></a>%ENV is aliased to %s</dt>
<dd>

<p>(F) You&#39;re running under taint mode, and the <code>%ENV</code> variable has been aliased to another hash, so it doesn&#39;t reflect anymore the state of the program&#39;s environment. This is potentially insecure.</p>

</dd>
<dt id="Error-converting-file-specification-%s"><a class="permalink" href="perldiag.html#Error-converting-file-specification-%25s">#</a><a id="Error"></a><a id="Error-converting-file-specification-s"></a>Error converting file specification %s</dt>
<dd>

<p>(F) An error peculiar to VMS. Because Perl may have to deal with file specifications in either VMS or Unix syntax, it converts them to a single form when it must operate on them directly. Either you&#39;ve passed an invalid file specification to Perl, or you&#39;ve found a case the conversion routines don&#39;t handle. Drat.</p>

</dd>
<dt id="Error-%s-in-expansion-of-%s"><a class="permalink" href="perldiag.html#Error-%25s-in-expansion-of-%25s">#</a><a id="Error1"></a><a id="Error-s-in-expansion-of-s"></a>Error %s in expansion of %s</dt>
<dd>

<p>(F) An error was encountered in handling a user-defined property (<a href="perlunicode.html#User-Defined-Character-Properties">&quot;User-Defined Character Properties&quot; in perlunicode</a>). These are programmer written subroutines, hence subject to errors that may prevent them from compiling or running. The calls to these subs are <code>eval</code>&#39;d, and if there is a failure, this message is raised, using the contents of <code>$@</code> from the failed <code>eval</code>.</p>

<p>Another possibility is that tainted data was encountered somewhere in the chain of expanding the property. If so, the message wording will indicate that this is the problem. See <a href="perldiag.html#Insecure-user-defined-property-%25s">&quot;Insecure user-defined property %s&quot;</a>.</p>

</dd>
<dt id="Eval-group-in-insecure-regular-expression"><a class="permalink" href="perldiag.html#Eval-group-in-insecure-regular-expression">#</a><a id="Eval"></a>Eval-group in insecure regular expression</dt>
<dd>

<p>(F) Perl detected tainted data when trying to compile a regular expression that contains the <code>(?{ ... })</code> zero-width assertion, which is unsafe. See <a href="perlre.html#%28%3F%7B-code-%7D%29">&quot;(?{ code })&quot; in perlre</a>, and <a href="perlsec.html">perlsec</a>.</p>

</dd>
<dt id="Eval-group-not-allowed-at-runtime,-use-re-&#39;eval&#39;-in-regex-m/%s/"><a class="permalink" href="perldiag.html#Eval-group-not-allowed-at-runtime,-use-re-&#39;eval&#39;-in-regex-m/%25s/">#</a><a id="Eval1"></a><a id="Eval-group-not-allowed-at-runtime-use-re-eval-in-regex-m-s"></a>Eval-group not allowed at runtime, use re &#39;eval&#39; in regex m/%s/</dt>
<dd>

<p>(F) Perl tried to compile a regular expression containing the <code>(?{ ... })</code> zero-width assertion at run time, as it would when the pattern contains interpolated values. Since that is a security risk, it is not allowed. If you insist, you may still do this by using the <code>re &#39;eval&#39;</code> pragma or by explicitly building the pattern from an interpolated string at run time and using that in an eval(). See <a href="perlre.html#%28%3F%7B-code-%7D%29">&quot;(?{ code })&quot; in perlre</a>.</p>

</dd>
<dt id="Eval-group-not-allowed,-use-re-&#39;eval&#39;-in-regex-m/%s/"><a class="permalink" href="perldiag.html#Eval-group-not-allowed,-use-re-&#39;eval&#39;-in-regex-m/%25s/">#</a><a id="Eval2"></a><a id="Eval-group-not-allowed-use-re-eval-in-regex-m-s"></a>Eval-group not allowed, use re &#39;eval&#39; in regex m/%s/</dt>
<dd>

<p>(F) A regular expression contained the <code>(?{ ... })</code> zero-width assertion, but that construct is only allowed when the <code>use re &#39;eval&#39;</code> pragma is in effect. See <a href="perlre.html#%28%3F%7B-code-%7D%29">&quot;(?{ code })&quot; in perlre</a>.</p>

</dd>
<dt id="EVAL-without-pos-change-exceeded-limit-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#EVAL-without-pos-change-exceeded-limit-in-regex;-marked-by-in-m/%25s/">#</a><a id="EVAL-without-pos-change-exceeded-limit-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="EVAL"></a><a id="EVAL-without-pos-change-exceeded-limit-in-regex-marked-by----HERE-in-m-s"></a>EVAL without pos change exceeded limit in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You used a pattern that nested too many EVAL calls without consuming any text. Restructure the pattern so that text is consumed.</p>

<p>The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered.</p>

</dd>
<dt id="Excessively-long-&lt;&gt;-operator"><a class="permalink" href="perldiag.html#Excessively-long-%3C%3E-operator">#</a><a id="Excessively"></a><a id="Excessively-long-operator"></a>Excessively long &lt;&gt; operator</dt>
<dd>

<p>(F) The contents of a &lt;&gt; operator may not exceed the maximum size of a Perl identifier. If you&#39;re just trying to glob a long list of filenames, try using the glob() operator, or put the filenames into a variable and glob that.</p>

</dd>
<dt id="exec?-I&#39;m-not-*that*-kind-of-operating-system"><a class="permalink" href="perldiag.html#exec?-I&#39;m-not-*that*-kind-of-operating-system">#</a><a id="exec"></a><a id="exec-Im-not-that-kind-of-operating-system"></a>exec? I&#39;m not *that* kind of operating system</dt>
<dd>

<p>(F) The <code>exec</code> function is not implemented on some systems, e.g. Catamount. See <a href="perlport.html">perlport</a>.</p>

</dd>
<dt id="%sExecution-of-%s-aborted-due-to-compilation-errors."><a class="permalink" href="perldiag.html#%25sExecution-of-%25s-aborted-due-to-compilation-errors.">#</a><a id="sExecution-of-s-aborted-due-to-compilation-errors"></a>%sExecution of %s aborted due to compilation errors.</dt>
<dd>

<p>(F) The final summary message when a Perl compilation fails.</p>

</dd>
<dt id="exists-argument-is-not-a-HASH-or-ARRAY-element-or-a-subroutine"><a class="permalink" href="perldiag.html#exists-argument-is-not-a-HASH-or-ARRAY-element-or-a-subroutine">#</a><a id="exists"></a>exists argument is not a HASH or ARRAY element or a subroutine</dt>
<dd>

<p>(F) The argument to <code>exists</code> must be a hash or array element or a subroutine with an ampersand, such as:</p>

<pre><code>$foo{$bar}
$ref-&gt;{&quot;susie&quot;}[12]
&amp;do_something</code></pre>

</dd>
<dt id="exists-argument-is-not-a-subroutine-name"><a class="permalink" href="perldiag.html#exists-argument-is-not-a-subroutine-name">#</a><a id="exists1"></a>exists argument is not a subroutine name</dt>
<dd>

<p>(F) The argument to <code>exists</code> for <code>exists &amp;sub</code> must be a subroutine name, and not a subroutine call. <code>exists &amp;sub()</code> will generate this error.</p>

</dd>
<dt id="Exiting-eval-via-%s"><a class="permalink" href="perldiag.html#Exiting-eval-via-%25s">#</a><a id="Exiting"></a><a id="Exiting-eval-via-s"></a>Exiting eval via %s</dt>
<dd>

<p>(W exiting) You are exiting an eval by unconventional means, such as a goto, or a loop control statement.</p>

</dd>
<dt id="Exiting-format-via-%s"><a class="permalink" href="perldiag.html#Exiting-format-via-%25s">#</a><a id="Exiting1"></a><a id="Exiting-format-via-s"></a>Exiting format via %s</dt>
<dd>

<p>(W exiting) You are exiting a format by unconventional means, such as a goto, or a loop control statement.</p>

</dd>
<dt id="Exiting-pseudo-block-via-%s"><a class="permalink" href="perldiag.html#Exiting-pseudo-block-via-%25s">#</a><a id="Exiting2"></a><a id="Exiting-pseudo-block-via-s"></a>Exiting pseudo-block via %s</dt>
<dd>

<p>(W exiting) You are exiting a rather special block construct (like a sort block or subroutine) by unconventional means, such as a goto, or a loop control statement. See <a href="perlfunc.html#sort">&quot;sort&quot; in perlfunc</a>.</p>

</dd>
<dt id="Exiting-subroutine-via-%s"><a class="permalink" href="perldiag.html#Exiting-subroutine-via-%25s">#</a><a id="Exiting3"></a><a id="Exiting-subroutine-via-s"></a>Exiting subroutine via %s</dt>
<dd>

<p>(W exiting) You are exiting a subroutine by unconventional means, such as a goto, or a loop control statement.</p>

</dd>
<dt id="Exiting-substitution-via-%s"><a class="permalink" href="perldiag.html#Exiting-substitution-via-%25s">#</a><a id="Exiting4"></a><a id="Exiting-substitution-via-s"></a>Exiting substitution via %s</dt>
<dd>

<p>(W exiting) You are exiting a substitution by unconventional means, such as a return, a goto, or a loop control statement.</p>

</dd>
<dt id="Expecting-close-bracket-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Expecting-close-bracket-in-regex;-marked-by-in-m/%25s/">#</a><a id="Expecting-close-bracket-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Expecting"></a><a id="Expecting-close-bracket-in-regex-marked-by----HERE-in-m-s"></a>Expecting close bracket in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You wrote something like</p>

<pre><code class="plaintext">(?13</code></pre>

<p>to denote a capturing group of the form <a href="perlre.html#%28%3FPARNO%29-%28%3F-PARNO%29-%28%3F%2BPARNO%29-%28%3FR%29-%28%3F0%29"><code>(?<i>PARNO</i>)</code></a>, but omitted the <code>&quot;)&quot;</code>.</p>

</dd>
<dt id="Expecting-interpolated-extended-charclass-in-regex;-marked-by-&lt;-HERE-in-m/%s/"><a class="permalink" href="perldiag.html#Expecting-interpolated-extended-charclass-in-regex;-marked-by-%3C-HERE-in-m/%25s/">#</a><a id="Expecting1"></a><a id="Expecting-interpolated-extended-charclass-in-regex-marked-by----HERE-in-m-s"></a>Expecting interpolated extended charclass in regex; marked by &lt;-- HERE in m/%s/</dt>
<dd>

<p>(F) It looked like you were attempting to interpolate an already-compiled extended character class, like so:</p>

<pre><code>my $thai_or_lao = qr/(?[ \p{Thai} + \p{Lao} ])/;
...
qr/(?[ \p{Digit} &amp; $thai_or_lao ])/;</code></pre>

<p>But the marked code isn&#39;t syntactically correct to be such an interpolated class.</p>

</dd>
<dt id="Experimental-aliasing-via-reference-not-enabled"><a class="permalink" href="perldiag.html#Experimental-aliasing-via-reference-not-enabled">#</a><a id="Experimental"></a>Experimental aliasing via reference not enabled</dt>
<dd>

<p>(F) To do aliasing via references, you must first enable the feature:</p>

<pre><code>no warnings &quot;experimental::refaliasing&quot;;
use feature &quot;refaliasing&quot;;
\$x = \$y;</code></pre>

</dd>
<dt id="Experimental-%s-on-scalar-is-now-forbidden"><a class="permalink" href="perldiag.html#Experimental-%25s-on-scalar-is-now-forbidden">#</a><a id="Experimental1"></a><a id="Experimental-s-on-scalar-is-now-forbidden"></a>Experimental %s on scalar is now forbidden</dt>
<dd>

<p>(F) An experimental feature added in Perl 5.14 allowed <code>each</code>, <code>keys</code>, <code>push</code>, <code>pop</code>, <code>shift</code>, <code>splice</code>, <code>unshift</code>, and <code>values</code> to be called with a scalar argument. This experiment is considered unsuccessful, and has been removed. The <code>postderef</code> feature may meet your needs better.</p>

</dd>
<dt id="Experimental-subroutine-signatures-not-enabled"><a class="permalink" href="perldiag.html#Experimental-subroutine-signatures-not-enabled">#</a><a id="Experimental2"></a>Experimental subroutine signatures not enabled</dt>
<dd>

<p>(F) To use subroutine signatures, you must first enable them:</p>

<pre><code>no warnings &quot;experimental::signatures&quot;;
use feature &quot;signatures&quot;;
sub foo ($left, $right) { ... }</code></pre>

</dd>
<dt id="Explicit-blessing-to-&#39;&#39;-(assuming-package-main)"><a class="permalink" href="perldiag.html#Explicit-blessing-to-&#39;&#39;-(assuming-package-main)">#</a><a id="Explicit"></a><a id="Explicit-blessing-to-assuming-package-main"></a>Explicit blessing to &#39;&#39; (assuming package main)</dt>
<dd>

<p>(W misc) You are blessing a reference to a zero length string. This has the effect of blessing the reference into the package main. This is usually not what you want. Consider providing a default target package, e.g. bless($ref, $p || &#39;MyPackage&#39;);</p>

</dd>
<dt id="%s:-Expression-syntax"><a class="permalink" href="perldiag.html#%25s:-Expression-syntax">#</a><a id="s:-Expression-syntax"></a>%s: Expression syntax</dt>
<dd>

<p>(A) You&#39;ve accidentally run your script through <b>csh</b> instead of Perl. Check the #! line, or manually feed your script into Perl yourself.</p>

</dd>
<dt id="%s-failed-call-queue-aborted"><a class="permalink" href="perldiag.html#%25s-failed-call-queue-aborted">#</a><a id="s-failed--call-queue-aborted"></a>%s failed--call queue aborted</dt>
<dd>

<p>(F) An untrapped exception was raised while executing a UNITCHECK, CHECK, INIT, or END subroutine. Processing of the remainder of the queue of such routines has been prematurely ended.</p>

</dd>
<dt id="Failed-to-close-in-place-work-file-%s:-%s"><a class="permalink" href="perldiag.html#Failed-to-close-in-place-work-file-%25s:-%25s">#</a><a id="Failed"></a><a id="Failed-to-close-in-place-work-file-s:-s"></a>Failed to close in-place work file %s: %s</dt>
<dd>

<p>(F) Closing an output file from in-place editing, as with the <code>-i</code> command-line switch, failed.</p>

</dd>
<dt id="False-[]-range-&quot;%s&quot;-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#False-%5B%5D-range-%22%25s%22-in-regex;-marked-by-in-m/%25s/">#</a><a id="False-[]-range-&quot;%s&quot;-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="False"></a><a id="False-range-s-in-regex-marked-by----HERE-in-m-s"></a>False [] range &quot;%s&quot; in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp)(F) A character class range must start and end at a literal character, not another character class like <code>\d</code> or <code>[:alpha:]</code>. The &quot;-&quot; in your false range is interpreted as a literal &quot;-&quot;. In a <code>(?[...])</code> construct, this is an error, rather than a warning. Consider quoting the &quot;-&quot;, &quot;\-&quot;. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Fatal-VMS-error-(status=%d)-at-%s,-line-%d"><a class="permalink" href="perldiag.html#Fatal-VMS-error-(status=%25d)-at-%25s,-line-%25d">#</a><a id="Fatal"></a><a id="Fatal-VMS-error-status-d-at-s-line-d"></a>Fatal VMS error (status=%d) at %s, line %d</dt>
<dd>

<p>(P) An error peculiar to VMS. Something untoward happened in a VMS system service or RTL routine; Perl&#39;s exit status should provide more details. The filename in &quot;at %s&quot; and the line number in &quot;line %d&quot; tell you which section of the Perl source code is distressed.</p>

</dd>
<dt id="fcntl-is-not-implemented"><a class="permalink" href="perldiag.html#fcntl-is-not-implemented">#</a><a id="fcntl"></a>fcntl is not implemented</dt>
<dd>

<p>(F) Your machine apparently doesn&#39;t implement fcntl(). What is this, a PDP-11 or something?</p>

</dd>
<dt id="FETCHSIZE-returned-a-negative-value"><a class="permalink" href="perldiag.html#FETCHSIZE-returned-a-negative-value">#</a><a id="FETCHSIZE"></a>FETCHSIZE returned a negative value</dt>
<dd>

<p>(F) A tied array claimed to have a negative number of elements, which is not possible.</p>

</dd>
<dt id="Field-too-wide-in-&#39;u&#39;-format-in-pack"><a class="permalink" href="perldiag.html#Field-too-wide-in-&#39;u&#39;-format-in-pack">#</a><a id="Field"></a><a id="Field-too-wide-in-u-format-in-pack"></a>Field too wide in &#39;u&#39; format in pack</dt>
<dd>

<p>(W pack) Each line in an uuencoded string starts with a length indicator which can&#39;t encode values above 63. So there is no point in asking for a line length bigger than that. Perl will behave as if you specified <code>u63</code> as the format.</p>

</dd>
<dt id="File::Glob::glob()-will-disappear-in-perl-5.30.-Use-File::Glob::bsd_glob()-instead."><a class="permalink" href="perldiag.html#File::Glob::glob()-will-disappear-in-perl-5.30.-Use-File::Glob::bsd_glob()-instead.">#</a><a id="File"></a><a id="File::Glob::glob-will-disappear-in-perl-5.30.-Use-File::Glob::bsd_glob-instead"></a>File::Glob::glob() will disappear in perl 5.30. Use File::Glob::bsd_glob() instead.</dt>
<dd>

<p>(D deprecated) <code>File::Glob</code> has a function called <code>glob</code>, which just calls <code>bsd_glob</code>. However, its prototype is different from the prototype of <code>CORE::glob</code>, and hence, <code>File::Glob::glob</code> should not be used.</p>

<p><code>File::Glob::glob()</code> was deprecated in perl 5.8.0. A deprecation message was issued from perl 5.26.0 onwards, and the function will disappear in perl 5.30.0.</p>

<p>Code using <code>File::Glob::glob()</code> should call <code>File::Glob::bsd_glob()</code> instead.</p>

</dd>
<dt id="Filehandle-%s-opened-only-for-input"><a class="permalink" href="perldiag.html#Filehandle-%25s-opened-only-for-input">#</a><a id="Filehandle"></a><a id="Filehandle-s-opened-only-for-input"></a>Filehandle %s opened only for input</dt>
<dd>

<p>(W io) You tried to write on a read-only filehandle. If you intended it to be a read-write filehandle, you needed to open it with &quot;+&lt;&quot; or &quot;+&gt;&quot; or &quot;+&gt;&gt;&quot; instead of with &quot;&lt;&quot; or nothing. If you intended only to write the file, use &quot;&gt;&quot; or &quot;&gt;&gt;&quot;. See <a href="perlfunc.html#open">&quot;open&quot; in perlfunc</a>.</p>

</dd>
<dt id="Filehandle-%s-opened-only-for-output"><a class="permalink" href="perldiag.html#Filehandle-%25s-opened-only-for-output">#</a><a id="Filehandle1"></a><a id="Filehandle-s-opened-only-for-output"></a>Filehandle %s opened only for output</dt>
<dd>

<p>(W io) You tried to read from a filehandle opened only for writing, If you intended it to be a read/write filehandle, you needed to open it with &quot;+&lt;&quot; or &quot;+&gt;&quot; or &quot;+&gt;&gt;&quot; instead of with &quot;&gt;&quot;. If you intended only to read from the file, use &quot;&lt;&quot;. See <a href="perlfunc.html#open">&quot;open&quot; in perlfunc</a>. Another possibility is that you attempted to open filedescriptor 0 (also known as STDIN) for output (maybe you closed STDIN earlier?).</p>

</dd>
<dt id="Filehandle-%s-reopened-as-%s-only-for-input"><a class="permalink" href="perldiag.html#Filehandle-%25s-reopened-as-%25s-only-for-input">#</a><a id="Filehandle2"></a><a id="Filehandle-s-reopened-as-s-only-for-input"></a>Filehandle %s reopened as %s only for input</dt>
<dd>

<p>(W io) You opened for reading a filehandle that got the same filehandle id as STDOUT or STDERR. This occurred because you closed STDOUT or STDERR previously.</p>

</dd>
<dt id="Filehandle-STDIN-reopened-as-%s-only-for-output"><a class="permalink" href="perldiag.html#Filehandle-STDIN-reopened-as-%25s-only-for-output">#</a><a id="Filehandle3"></a><a id="Filehandle-STDIN-reopened-as-s-only-for-output"></a>Filehandle STDIN reopened as %s only for output</dt>
<dd>

<p>(W io) You opened for writing a filehandle that got the same filehandle id as STDIN. This occurred because you closed STDIN previously.</p>

</dd>
<dt id="Final-$-should-be-\$-or-$name"><a class="permalink" href="perldiag.html#Final-$-should-be-%5C$-or-$name">#</a><a id="Final"></a><a id="Final-should-be-or-name"></a>Final $ should be \$ or $name</dt>
<dd>

<p>(F) You must now decide whether the final $ in a string was meant to be a literal dollar sign, or was meant to introduce a variable name that happens to be missing. So you have to put either the backslash or the name.</p>

</dd>
<dt id="flock()-on-closed-filehandle-%s"><a class="permalink" href="perldiag.html#flock()-on-closed-filehandle-%25s">#</a><a id="flock"></a><a id="flock-on-closed-filehandle-s"></a>flock() on closed filehandle %s</dt>
<dd>

<p>(W closed) The filehandle you&#39;re attempting to flock() got itself closed some time before now. Check your control flow. flock() operates on filehandles. Are you attempting to call flock() on a dirhandle by the same name?</p>

</dd>
<dt id="Format-not-terminated"><a class="permalink" href="perldiag.html#Format-not-terminated">#</a><a id="Format"></a>Format not terminated</dt>
<dd>

<p>(F) A format must be terminated by a line with a solitary dot. Perl got to the end of your file without finding such a line.</p>

</dd>
<dt id="Format-%s-redefined"><a class="permalink" href="perldiag.html#Format-%25s-redefined">#</a><a id="Format1"></a><a id="Format-s-redefined"></a>Format %s redefined</dt>
<dd>

<p>(W redefine) You redefined a format. To suppress this warning, say</p>

<pre><code>    {
	no warnings &#39;redefine&#39;;
	eval &quot;format NAME =...&quot;;
    }</code></pre>

</dd>
<dt id="Found-=-in-conditional,-should-be-=="><a class="permalink" href="perldiag.html#Found-=-in-conditional,-should-be-==">#</a><a id="Found"></a><a id="Found-in-conditional-should-be"></a>Found = in conditional, should be ==</dt>
<dd>

<p>(W syntax) You said</p>

<pre><code>if ($foo = 123)</code></pre>

<p>when you meant</p>

<pre><code>if ($foo == 123)</code></pre>

<p>(or something like that).</p>

</dd>
<dt id="%s-found-where-operator-expected"><a class="permalink" href="perldiag.html#%25s-found-where-operator-expected">#</a><a id="s-found-where-operator-expected"></a>%s found where operator expected</dt>
<dd>

<p>(S syntax) The Perl lexer knows whether to expect a term or an operator. If it sees what it knows to be a term when it was expecting to see an operator, it gives you this warning. Usually it indicates that an operator or delimiter was omitted, such as a semicolon.</p>

</dd>
<dt id="gdbm-store-returned-%d,-errno-%d,-key-&quot;%s&quot;"><a class="permalink" href="perldiag.html#gdbm-store-returned-%25d,-errno-%25d,-key-%22%25s%22">#</a><a id="gdbm"></a><a id="gdbm-store-returned-d-errno-d-key-s"></a>gdbm store returned %d, errno %d, key &quot;%s&quot;</dt>
<dd>

<p>(S) A warning from the GDBM_File extension that a store failed.</p>

</dd>
<dt id="gethostent-not-implemented"><a class="permalink" href="perldiag.html#gethostent-not-implemented">#</a><a id="gethostent"></a>gethostent not implemented</dt>
<dd>

<p>(F) Your C library apparently doesn&#39;t implement gethostent(), probably because if it did, it&#39;d feel morally obligated to return every hostname on the Internet.</p>

</dd>
<dt id="get%sname()-on-closed-socket-%s"><a class="permalink" href="perldiag.html#get%25sname()-on-closed-socket-%25s">#</a><a id="get"></a><a id="get-sname-on-closed-socket-s"></a>get%sname() on closed socket %s</dt>
<dd>

<p>(W closed) You tried to get a socket or peer socket name on a closed socket. Did you forget to check the return value of your socket() call?</p>

</dd>
<dt id="getpwnam-returned-invalid-UIC-%#o-for-user-&quot;%s&quot;"><a class="permalink" href="perldiag.html#getpwnam-returned-invalid-UIC-%25%23o-for-user-%22%25s%22">#</a><a id="getpwnam"></a><a id="getpwnam-returned-invalid-UIC-o-for-user-s"></a>getpwnam returned invalid UIC %#o for user &quot;%s&quot;</dt>
<dd>

<p>(S) A warning peculiar to VMS. The call to <code>sys$getuai</code> underlying the <code>getpwnam</code> operator returned an invalid UIC.</p>

</dd>
<dt id="getsockopt()-on-closed-socket-%s"><a class="permalink" href="perldiag.html#getsockopt()-on-closed-socket-%25s">#</a><a id="getsockopt"></a><a id="getsockopt-on-closed-socket-s"></a>getsockopt() on closed socket %s</dt>
<dd>

<p>(W closed) You tried to get a socket option on a closed socket. Did you forget to check the return value of your socket() call? See <a href="perlfunc.html#getsockopt">&quot;getsockopt&quot; in perlfunc</a>.</p>

</dd>
<dt id="given-is-experimental"><a class="permalink" href="perldiag.html#given-is-experimental">#</a><a id="given"></a>given is experimental</dt>
<dd>

<p>(S experimental::smartmatch) <code>given</code> depends on smartmatch, which is experimental, so its behavior may change or even be removed in any future release of perl. See the explanation under <a href="perlsyn.html#Experimental-Details-on-given-and-when">&quot;Experimental Details on given and when&quot; in perlsyn</a>.</p>

</dd>
<dt id="Global-symbol-&quot;%s&quot;-requires-explicit-package-name-(did-you-forget-to-declare-&quot;my-%s&quot;?)"><a class="permalink" href="perldiag.html#Global-symbol-%22%25s%22-requires-explicit-package-name-(did-you-forget-to-declare-%22my-%25s%22?)">#</a><a id="Global"></a><a id="Global-symbol-s-requires-explicit-package-name-did-you-forget-to-declare-my-s"></a>Global symbol &quot;%s&quot; requires explicit package name (did you forget to declare &quot;my %s&quot;?)</dt>
<dd>

<p>(F) You&#39;ve said &quot;use strict&quot; or &quot;use strict vars&quot;, which indicates that all variables must either be lexically scoped (using &quot;my&quot; or &quot;state&quot;), declared beforehand using &quot;our&quot;, or explicitly qualified to say which package the global variable is in (using &quot;::&quot;).</p>

</dd>
<dt id="glob-failed-(%s)"><a class="permalink" href="perldiag.html#glob-failed-(%25s)">#</a><a id="glob"></a><a id="glob-failed-s"></a>glob failed (%s)</dt>
<dd>

<p>(S glob) Something went wrong with the external program(s) used for <code>glob</code> and <code>&lt;*.c&gt;</code>. Usually, this means that you supplied a <code>glob</code> pattern that caused the external program to fail and exit with a nonzero status. If the message indicates that the abnormal exit resulted in a coredump, this may also mean that your csh (C shell) is broken. If so, you should change all of the csh-related variables in config.sh: If you have tcsh, make the variables refer to it as if it were csh (e.g. <code>full_csh=&#39;/usr/bin/tcsh&#39;</code>); otherwise, make them all empty (except that <code>d_csh</code> should be <code>&#39;undef&#39;</code>) so that Perl will think csh is missing. In either case, after editing config.sh, run <code>./Configure -S</code> and rebuild Perl.</p>

</dd>
<dt id="Glob-not-terminated"><a class="permalink" href="perldiag.html#Glob-not-terminated">#</a><a id="Glob"></a>Glob not terminated</dt>
<dd>

<p>(F) The lexer saw a left angle bracket in a place where it was expecting a term, so it&#39;s looking for the corresponding right angle bracket, and not finding it. Chances are you left some needed parentheses out earlier in the line, and you really meant a &quot;less than&quot;.</p>

</dd>
<dt id="gmtime(%f)-failed"><a class="permalink" href="perldiag.html#gmtime(%25f)-failed">#</a><a id="gmtime"></a><a id="gmtime-f-failed"></a>gmtime(%f) failed</dt>
<dd>

<p>(W overflow) You called <code>gmtime</code> with a number that it could not handle: too large, too small, or NaN. The returned value is <code>undef</code>.</p>

</dd>
<dt id="gmtime(%f)-too-large"><a class="permalink" href="perldiag.html#gmtime(%25f)-too-large">#</a><a id="gmtime1"></a><a id="gmtime-f-too-large"></a>gmtime(%f) too large</dt>
<dd>

<p>(W overflow) You called <code>gmtime</code> with a number that was larger than it can reliably handle and <code>gmtime</code> probably returned the wrong date. This warning is also triggered with NaN (the special not-a-number value).</p>

</dd>
<dt id="gmtime(%f)-too-small"><a class="permalink" href="perldiag.html#gmtime(%25f)-too-small">#</a><a id="gmtime2"></a><a id="gmtime-f-too-small"></a>gmtime(%f) too small</dt>
<dd>

<p>(W overflow) You called <code>gmtime</code> with a number that was smaller than it can reliably handle and <code>gmtime</code> probably returned the wrong date.</p>

</dd>
<dt id="Got-an-error-from-DosAllocMem"><a class="permalink" href="perldiag.html#Got-an-error-from-DosAllocMem">#</a><a id="Got"></a>Got an error from DosAllocMem</dt>
<dd>

<p>(P) An error peculiar to OS/2. Most probably you&#39;re using an obsolete version of Perl, and this should not happen anyway.</p>

</dd>
<dt id="goto-must-have-label"><a class="permalink" href="perldiag.html#goto-must-have-label">#</a><a id="goto"></a>goto must have label</dt>
<dd>

<p>(F) Unlike with &quot;next&quot; or &quot;last&quot;, you&#39;re not allowed to goto an unspecified destination. See <a href="perlfunc.html#goto">&quot;goto&quot; in perlfunc</a>.</p>

</dd>
<dt id="Goto-undefined-subroutine%s"><a class="permalink" href="perldiag.html#Goto-undefined-subroutine%25s">#</a><a id="Goto"></a><a id="Goto-undefined-subroutine-s"></a>Goto undefined subroutine%s</dt>
<dd>

<p>(F) You tried to call a subroutine with <code>goto &amp;sub</code> syntax, but the indicated subroutine hasn&#39;t been defined, or if it was, it has since been undefined.</p>

</dd>
<dt id="Group-name-must-start-with-a-non-digit-word-character-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Group-name-must-start-with-a-non-digit-word-character-in-regex;-marked-by-in-m/%25s/">#</a><a id="Group-name-must-start-with-a-non-digit-word-character-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Group"></a><a id="Group-name-must-start-with-a-non-digit-word-character-in-regex-marked-by----HERE-in-m-s"></a>Group name must start with a non-digit word character in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) Group names must follow the rules for perl identifiers, meaning they must start with a non-digit word character. A common cause of this error is using (?&amp;0) instead of (?0). See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="()-group-starts-with-a-count"><a class="permalink" href="perldiag.html#()-group-starts-with-a-count">#</a><a id="group-starts-with-a-count"></a>()-group starts with a count</dt>
<dd>

<p>(F) A ()-group started with a count. A count is supposed to follow something: a template character or a ()-group. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="%s-had-compilation-errors."><a class="permalink" href="perldiag.html#%25s-had-compilation-errors.">#</a><a id="s-had-compilation-errors"></a>%s had compilation errors.</dt>
<dd>

<p>(F) The final summary message when a <code>perl -c</code> fails.</p>

</dd>
<dt id="Had-to-create-%s-unexpectedly"><a class="permalink" href="perldiag.html#Had-to-create-%25s-unexpectedly">#</a><a id="Had"></a><a id="Had-to-create-s-unexpectedly"></a>Had to create %s unexpectedly</dt>
<dd>

<p>(S internal) A routine asked for a symbol from a symbol table that ought to have existed already, but for some reason it didn&#39;t, and had to be created on an emergency basis to prevent a core dump.</p>

</dd>
<dt id="%s-has-too-many-errors"><a class="permalink" href="perldiag.html#%25s-has-too-many-errors">#</a><a id="s-has-too-many-errors"></a>%s has too many errors</dt>
<dd>

<p>(F) The parser has given up trying to parse the program after 10 errors. Further error messages would likely be uninformative.</p>

</dd>
<dt id="Hexadecimal-float:-exponent-overflow"><a class="permalink" href="perldiag.html#Hexadecimal-float:-exponent-overflow">#</a><a id="Hexadecimal"></a>Hexadecimal float: exponent overflow</dt>
<dd>

<p>(W overflow) The hexadecimal floating point has a larger exponent than the floating point supports.</p>

</dd>
<dt id="Hexadecimal-float:-exponent-underflow"><a class="permalink" href="perldiag.html#Hexadecimal-float:-exponent-underflow">#</a><a id="Hexadecimal1"></a>Hexadecimal float: exponent underflow</dt>
<dd>

<p>(W overflow) The hexadecimal floating point has a smaller exponent than the floating point supports. With the IEEE 754 floating point, this may also mean that the subnormals (formerly known as denormals) are being used, which may or may not be an error.</p>

</dd>
<dt id="Hexadecimal-float:-internal-error-(%s)"><a class="permalink" href="perldiag.html#Hexadecimal-float:-internal-error-(%25s)">#</a><a id="Hexadecimal2"></a><a id="Hexadecimal-float:-internal-error-s"></a>Hexadecimal float: internal error (%s)</dt>
<dd>

<p>(F) Something went horribly bad in hexadecimal float handling.</p>

</dd>
<dt id="Hexadecimal-float:-mantissa-overflow"><a class="permalink" href="perldiag.html#Hexadecimal-float:-mantissa-overflow">#</a><a id="Hexadecimal3"></a>Hexadecimal float: mantissa overflow</dt>
<dd>

<p>(W overflow) The hexadecimal floating point literal had more bits in the mantissa (the part between the 0x and the exponent, also known as the fraction or the significand) than the floating point supports.</p>

</dd>
<dt id="Hexadecimal-float:-precision-loss"><a class="permalink" href="perldiag.html#Hexadecimal-float:-precision-loss">#</a><a id="Hexadecimal4"></a>Hexadecimal float: precision loss</dt>
<dd>

<p>(W overflow) The hexadecimal floating point had internally more digits than could be output. This can be caused by unsupported long double formats, or by 64-bit integers not being available (needed to retrieve the digits under some configurations).</p>

</dd>
<dt id="Hexadecimal-float:-unsupported-long-double-format"><a class="permalink" href="perldiag.html#Hexadecimal-float:-unsupported-long-double-format">#</a><a id="Hexadecimal5"></a>Hexadecimal float: unsupported long double format</dt>
<dd>

<p>(F) You have configured Perl to use long doubles but the internals of the long double format are unknown; therefore the hexadecimal float output is impossible.</p>

</dd>
<dt id="Hexadecimal-number-&gt;-0xffffffff-non-portable"><a class="permalink" href="perldiag.html#Hexadecimal-number-%3E-0xffffffff-non-portable">#</a><a id="Hexadecimal6"></a><a id="Hexadecimal-number-0xffffffff-non-portable"></a>Hexadecimal number &gt; 0xffffffff non-portable</dt>
<dd>

<p>(W portable) The hexadecimal number you specified is larger than 2**32-1 (4294967295) and therefore non-portable between systems. See <a href="perlport.html">perlport</a> for more on portability concerns.</p>

</dd>
<dt id="Identifier-too-long"><a class="permalink" href="perldiag.html#Identifier-too-long">#</a><a id="Identifier"></a>Identifier too long</dt>
<dd>

<p>(F) Perl limits identifiers (names for variables, functions, etc.) to about 250 characters for simple names, and somewhat more for compound names (like <code>$A::B</code>). You&#39;ve exceeded Perl&#39;s limits. Future versions of Perl are likely to eliminate these arbitrary limitations.</p>

</dd>
<dt id="Ignoring-zero-length-\N{}-in-character-class-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Ignoring-zero-length-%5CN%7B%7D-in-character-class-in-regex;-marked-by-in-m/%25s/">#</a><a id="Ignoring-zero-length-\N{}-in-character-class-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Ignoring"></a><a id="Ignoring-zero-length-N-in-character-class-in-regex-marked-by----HERE-in-m-s"></a>Ignoring zero length \N{} in character class in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp) Named Unicode character escapes (<code>\N{...}</code>) may return a zero-length sequence. When such an escape is used in a character class its behavior is not well defined. Check that the correct escape has been used, and the correct charname handler is in scope.</p>

</dd>
<dt id="Illegal-%s-digit-&#39;%c&#39;-ignored"><a class="permalink" href="perldiag.html#Illegal-%25s-digit-&#39;%25c&#39;-ignored">#</a><a id="Illegal"></a><a id="Illegal-s-digit-c-ignored"></a>Illegal %s digit &#39;%c&#39; ignored</dt>
<dd>

<p>(W digit) Here <code>%s</code> is one of &quot;binary&quot;, &quot;octal&quot;, or &quot;hex&quot;. You may have tried to use a digit other than one that is legal for the given type, such as only 0 and 1 for binary. For octals, this is raised only if the illegal character is an &#39;8&#39; or &#39;9&#39;. For hex, &#39;A&#39; - &#39;F&#39; and &#39;a&#39; - &#39;f&#39; are legal. Interpretation of the number stopped just before the offending digit or character.</p>

</dd>
<dt id="Illegal-binary-digit-&#39;%c&#39;"><a class="permalink" href="perldiag.html#Illegal-binary-digit-&#39;%25c&#39;">#</a><a id="Illegal1"></a><a id="Illegal-binary-digit-c"></a>Illegal binary digit &#39;%c&#39;</dt>
<dd>

<p>(F) You used a digit other than 0 or 1 in a binary number.</p>

</dd>
<dt id="Illegal-character-after-&#39;_&#39;-in-prototype-for-%s-:-%s"><a class="permalink" href="perldiag.html#Illegal-character-after-&#39;_&#39;-in-prototype-for-%25s-:-%25s">#</a><a id="Illegal2"></a><a id="Illegal-character-after-_-in-prototype-for-s-:-s"></a>Illegal character after &#39;_&#39; in prototype for %s : %s</dt>
<dd>

<p>(W illegalproto) An illegal character was found in a prototype declaration. The &#39;_&#39; in a prototype must be followed by a &#39;;&#39;, indicating the rest of the parameters are optional, or one of &#39;@&#39; or &#39;%&#39;, since those two will accept 0 or more final parameters.</p>

</dd>
<dt id="Illegal-character-\%o-(carriage-return)"><a class="permalink" href="perldiag.html#Illegal-character-%5C%25o-(carriage-return)">#</a><a id="Illegal3"></a><a id="Illegal-character-o-carriage-return"></a>Illegal character \%o (carriage return)</dt>
<dd>

<p>(F) Perl normally treats carriage returns in the program text as it would any other whitespace, which means you should never see this error when Perl was built using standard options. For some reason, your version of Perl appears to have been built without this support. Talk to your Perl administrator.</p>

</dd>
<dt id="Illegal-character-following-sigil-in-a-subroutine-signature"><a class="permalink" href="perldiag.html#Illegal-character-following-sigil-in-a-subroutine-signature">#</a><a id="Illegal4"></a>Illegal character following sigil in a subroutine signature</dt>
<dd>

<p>(F) A parameter in a subroutine signature contained an unexpected character following the <code>$</code>, <code>@</code> or <code>%</code> sigil character. Normally the sigil should be followed by the variable name or <code>=</code> etc. Perhaps you are trying use a prototype while in the scope of <code>use feature &#39;signatures&#39;</code>? For example:</p>

<pre><code>sub foo ($$) {}            # legal - a prototype

use feature &#39;signatures;
sub foo ($$) {}            # illegal - was expecting a signature
sub foo ($a, $b)
        :prototype($$) {}  # legal</code></pre>

</dd>
<dt id="Illegal-character-in-prototype-for-%s-:-%s"><a class="permalink" href="perldiag.html#Illegal-character-in-prototype-for-%25s-:-%25s">#</a><a id="Illegal5"></a><a id="Illegal-character-in-prototype-for-s-:-s"></a>Illegal character in prototype for %s : %s</dt>
<dd>

<p>(W illegalproto) An illegal character was found in a prototype declaration. Legal characters in prototypes are $, @, %, *, ;, [, ], &amp;, \, and +. Perhaps you were trying to write a subroutine signature but didn&#39;t enable that feature first (<code>use feature &#39;signatures&#39;</code>), so your signature was instead interpreted as a bad prototype.</p>

</dd>
<dt id="Illegal-declaration-of-anonymous-subroutine"><a class="permalink" href="perldiag.html#Illegal-declaration-of-anonymous-subroutine">#</a><a id="Illegal6"></a>Illegal declaration of anonymous subroutine</dt>
<dd>

<p>(F) When using the <code>sub</code> keyword to construct an anonymous subroutine, you must always specify a block of code. See <a href="perlsub.html">perlsub</a>.</p>

</dd>
<dt id="Illegal-declaration-of-subroutine-%s"><a class="permalink" href="perldiag.html#Illegal-declaration-of-subroutine-%25s">#</a><a id="Illegal7"></a><a id="Illegal-declaration-of-subroutine-s"></a>Illegal declaration of subroutine %s</dt>
<dd>

<p>(F) A subroutine was not declared correctly. See <a href="perlsub.html">perlsub</a>.</p>

</dd>
<dt id="Illegal-division-by-zero"><a class="permalink" href="perldiag.html#Illegal-division-by-zero">#</a><a id="Illegal8"></a>Illegal division by zero</dt>
<dd>

<p>(F) You tried to divide a number by 0. Either something was wrong in your logic, or you need to put a conditional in to guard against meaningless input.</p>

</dd>
<dt id="Illegal-modulus-zero"><a class="permalink" href="perldiag.html#Illegal-modulus-zero">#</a><a id="Illegal9"></a>Illegal modulus zero</dt>
<dd>

<p>(F) You tried to divide a number by 0 to get the remainder. Most numbers don&#39;t take to this kindly.</p>

</dd>
<dt id="Illegal-number-of-bits-in-vec"><a class="permalink" href="perldiag.html#Illegal-number-of-bits-in-vec">#</a><a id="Illegal10"></a>Illegal number of bits in vec</dt>
<dd>

<p>(F) The number of bits in vec() (the third argument) must be a power of two from 1 to 32 (or 64, if your platform supports that).</p>

</dd>
<dt id="Illegal-octal-digit-&#39;%c&#39;"><a class="permalink" href="perldiag.html#Illegal-octal-digit-&#39;%25c&#39;">#</a><a id="Illegal11"></a><a id="Illegal-octal-digit-c"></a>Illegal octal digit &#39;%c&#39;</dt>
<dd>

<p>(F) You used an 8 or 9 in an octal number.</p>

</dd>
<dt id="Illegal-operator-following-parameter-in-a-subroutine-signature"><a class="permalink" href="perldiag.html#Illegal-operator-following-parameter-in-a-subroutine-signature">#</a><a id="Illegal12"></a>Illegal operator following parameter in a subroutine signature</dt>
<dd>

<p>(F) A parameter in a subroutine signature, was followed by something other than <code>=</code> introducing a default, <code>,</code> or <code>)</code>.</p>

<pre><code>use feature &#39;signatures&#39;;
sub foo ($=1) {}           # legal
sub foo ($a = 1) {}        # legal
sub foo ($a += 1) {}       # illegal
sub foo ($a == 1) {}       # illegal</code></pre>

</dd>
<dt id="Illegal-pattern-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Illegal-pattern-in-regex;-marked-by-in-m/%25s/">#</a><a id="Illegal-pattern-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Illegal13"></a><a id="Illegal-pattern-in-regex-marked-by----HERE-in-m-s"></a>Illegal pattern in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You wrote something like</p>

<pre><code class="plaintext">(?+foo)</code></pre>

<p>The <code>&quot;+&quot;</code> is valid only when followed by digits, indicating a capturing group. See <a href="perlre.html#%28%3FPARNO%29-%28%3F-PARNO%29-%28%3F%2BPARNO%29-%28%3FR%29-%28%3F0%29"><code>(?<i>PARNO</i>)</code></a>.</p>

</dd>
<dt id="Illegal-suidscript"><a class="permalink" href="perldiag.html#Illegal-suidscript">#</a><a id="Illegal14"></a>Illegal suidscript</dt>
<dd>

<p>(F) The script run under suidperl was somehow illegal.</p>

</dd>
<dt id="Illegal-switch-in-PERL5OPT:-%c"><a class="permalink" href="perldiag.html#Illegal-switch-in-PERL5OPT:-%25c">#</a><a id="Illegal15"></a><a id="Illegal-switch-in-PERL5OPT:---c"></a>Illegal switch in PERL5OPT: -%c</dt>
<dd>

<p>(X) The PERL5OPT environment variable may only be used to set the following switches: <b>-[CDIMUdmtw]</b>.</p>

</dd>
<dt id="Illegal-user-defined-property-name"><a class="permalink" href="perldiag.html#Illegal-user-defined-property-name">#</a><a id="Illegal16"></a>Illegal user-defined property name</dt>
<dd>

<p>(F) You specified a Unicode-like property name in a regular expression pattern (using <code>\p{}</code> or <code>\P{}</code>) that Perl knows isn&#39;t an official Unicode property, and was likely meant to be a user-defined property name, but it can&#39;t be one of those, as they must begin with either <code>In</code> or <code>Is</code>. Check the spelling. See also <a href="perldiag.html#Can%27t-find-Unicode-property-definition-%22%25s%22">&quot;Can&#39;t find Unicode property definition &quot;%s&quot;&quot;</a>.</p>

</dd>
<dt id="Ill-formed-CRTL-environ-value-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Ill-formed-CRTL-environ-value-%22%25s%22">#</a><a id="Ill"></a><a id="Ill-formed-CRTL-environ-value-s"></a>Ill-formed CRTL environ value &quot;%s&quot;</dt>
<dd>

<p>(W internal) A warning peculiar to VMS. Perl tried to read the CRTL&#39;s internal environ array, and encountered an element without the <code>=</code> delimiter used to separate keys from values. The element is ignored.</p>

</dd>
<dt id="Ill-formed-message-in-prime_env_iter:-|%s|"><a class="permalink" href="perldiag.html#Ill-formed-message-in-prime_env_iter:-%7C%25s%7C">#</a><a id="Ill1"></a><a id="Ill-formed-message-in-prime_env_iter:-s"></a>Ill-formed message in prime_env_iter: |%s|</dt>
<dd>

<p>(W internal) A warning peculiar to VMS. Perl tried to read a logical name or CLI symbol definition when preparing to iterate over %ENV, and didn&#39;t see the expected delimiter between key and value, so the line was ignored.</p>

</dd>
<dt id="(in-cleanup)-%s"><a class="permalink" href="perldiag.html#(in-cleanup)-%25s">#</a><a id="in-cleanup-s"></a>(in cleanup) %s</dt>
<dd>

<p>(W misc) This prefix usually indicates that a DESTROY() method raised the indicated exception. Since destructors are usually called by the system at arbitrary points during execution, and often a vast number of times, the warning is issued only once for any number of failures that would otherwise result in the same message being repeated.</p>

<p>Failure of user callbacks dispatched using the <code>G_KEEPERR</code> flag could also result in this warning. See <a href="perlcall.html#G_KEEPERR">&quot;G_KEEPERR&quot; in perlcall</a>.</p>

</dd>
<dt id="Incomplete-expression-within-&#39;(?[-])&#39;-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Incomplete-expression-within-&#39;(?%5B-%5D)&#39;-in-regex;-marked-by-in-m/%25s/">#</a><a id="Incomplete-expression-within-&#39;(?[-])&#39;-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Incomplete"></a><a id="Incomplete-expression-within-in-regex-marked-by----HERE-in-m-s"></a>Incomplete expression within &#39;(?[ ])&#39; in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) There was a syntax error within the <code>(?[ ])</code>. This can happen if the expression inside the construct was completely empty, or if there are too many or few operands for the number of operators. Perl is not smart enough to give you a more precise indication as to what is wrong.</p>

</dd>
<dt id="Inconsistent-hierarchy-during-C3-merge-of-class-&#39;%s&#39;:-merging-failed-on-parent-&#39;%s&#39;"><a class="permalink" href="perldiag.html#Inconsistent-hierarchy-during-C3-merge-of-class-&#39;%25s&#39;:-merging-failed-on-parent-&#39;%25s&#39;">#</a><a id="Inconsistent"></a><a id="Inconsistent-hierarchy-during-C3-merge-of-class-s:-merging-failed-on-parent-s"></a>Inconsistent hierarchy during C3 merge of class &#39;%s&#39;: merging failed on parent &#39;%s&#39;</dt>
<dd>

<p>(F) The method resolution order (MRO) of the given class is not C3-consistent, and you have enabled the C3 MRO for this class. See the C3 documentation in <a href="mro.html">mro</a> for more information.</p>

</dd>
<dt id="Indentation-on-line-%d-of-here-doc-doesn&#39;t-match-delimiter"><a class="permalink" href="perldiag.html#Indentation-on-line-%25d-of-here-doc-doesn&#39;t-match-delimiter">#</a><a id="Indentation"></a><a id="Indentation-on-line-d-of-here-doc-doesnt-match-delimiter"></a>Indentation on line %d of here-doc doesn&#39;t match delimiter</dt>
<dd>

<p>(F) You have an indented here-document where one or more of its lines have whitespace at the beginning that does not match the closing delimiter.</p>

<p>For example, line 2 below is wrong because it does not have at least 2 spaces, but lines 1 and 3 are fine because they have at least 2:</p>

<pre><code>if ($something) {
  print &lt;&lt;~EOF;
    Line 1
   Line 2 not
      Line 3
    EOF
}</code></pre>

<p>Note that tabs and spaces are compared strictly, meaning 1 tab will not match 8 spaces.</p>

</dd>
<dt id="Infinite-recursion-in-regex"><a class="permalink" href="perldiag.html#Infinite-recursion-in-regex">#</a><a id="Infinite"></a>Infinite recursion in regex</dt>
<dd>

<p>(F) You used a pattern that references itself without consuming any input text. You should check the pattern to ensure that recursive patterns either consume text or fail.</p>

</dd>
<dt id="Infinite-recursion-in-user-defined-property"><a class="permalink" href="perldiag.html#Infinite-recursion-in-user-defined-property">#</a><a id="Infinite1"></a>Infinite recursion in user-defined property</dt>
<dd>

<p>(F) A user-defined property (<a href="perlunicode.html#User-Defined-Character-Properties">&quot;User-Defined Character Properties&quot; in perlunicode</a>) can depend on the definitions of other user-defined properties. If the chain of dependencies leads back to this property, infinite recursion would occur, were it not for the check that raised this error.</p>

<p>Restructure your property definitions to avoid this.</p>

</dd>
<dt id="Infinite-recursion-via-empty-pattern"><a class="permalink" href="perldiag.html#Infinite-recursion-via-empty-pattern">#</a><a id="Infinite2"></a>Infinite recursion via empty pattern</dt>
<dd>

<p>(F) You tried to use the empty pattern inside of a regex code block, for instance <code>/(?{ s!!! })/</code>, which resulted in re-executing the same pattern, which is an infinite loop which is broken by throwing an exception.</p>

</dd>
<dt id="Initialization-of-state-variables-in-list-currently-forbidden"><a class="permalink" href="perldiag.html#Initialization-of-state-variables-in-list-currently-forbidden">#</a><a id="Initialization"></a>Initialization of state variables in list currently forbidden</dt>
<dd>

<p>(F) <code>state</code> only permits initializing a single variable, specified without parentheses. So <code>state $a = 42</code> and <code>state @a = qw(a b c)</code> are allowed, but not <code>state ($a) = 42</code> or <code>(state $a) = 42</code>. To initialize more than one <code>state</code> variable, initialize them one at a time.</p>

</dd>
<dt id="%%s[%s]-in-scalar-context-better-written-as-$%s[%s]"><a class="permalink" href="perldiag.html#%25%25s%5B%25s%5D-in-scalar-context-better-written-as-$%25s%5B%25s%5D">#</a><a id="s-s-in-scalar-context-better-written-as-s-s"></a>%%s[%s] in scalar context better written as $%s[%s]</dt>
<dd>

<p>(W syntax) In scalar context, you&#39;ve used an array index/value slice (indicated by %) to select a single element of an array. Generally it&#39;s better to ask for a scalar value (indicated by $). The difference is that <code>$foo[&amp;bar]</code> always behaves like a scalar, both in the value it returns and when evaluating its argument, while <code>%foo[&amp;bar]</code> provides a list context to its subscript, which can do weird things if you&#39;re expecting only one subscript. When called in list context, it also returns the index (what <code>&amp;bar</code> returns) in addition to the value.</p>

</dd>
<dt id="%%s{%s}-in-scalar-context-better-written-as-$%s{%s}"><a class="permalink" href="perldiag.html#%25%25s%7B%25s%7D-in-scalar-context-better-written-as-$%25s%7B%25s%7D">#</a><a id="s-s-in-scalar-context-better-written-as-s-s1"></a>%%s{%s} in scalar context better written as $%s{%s}</dt>
<dd>

<p>(W syntax) In scalar context, you&#39;ve used a hash key/value slice (indicated by %) to select a single element of a hash. Generally it&#39;s better to ask for a scalar value (indicated by $). The difference is that <code>$foo{&amp;bar}</code> always behaves like a scalar, both in the value it returns and when evaluating its argument, while <code>@foo{&amp;bar}</code> and provides a list context to its subscript, which can do weird things if you&#39;re expecting only one subscript. When called in list context, it also returns the key in addition to the value.</p>

</dd>
<dt id="Insecure-dependency-in-%s"><a class="permalink" href="perldiag.html#Insecure-dependency-in-%25s">#</a><a id="Insecure"></a><a id="Insecure-dependency-in-s"></a>Insecure dependency in %s</dt>
<dd>

<p>(F) You tried to do something that the tainting mechanism didn&#39;t like. The tainting mechanism is turned on when you&#39;re running setuid or setgid, or when you specify <b>-T</b> to turn it on explicitly. The tainting mechanism labels all data that&#39;s derived directly or indirectly from the user, who is considered to be unworthy of your trust. If any such data is used in a &quot;dangerous&quot; operation, you get this error. See <a href="perlsec.html">perlsec</a> for more information.</p>

</dd>
<dt id="Insecure-directory-in-%s"><a class="permalink" href="perldiag.html#Insecure-directory-in-%25s">#</a><a id="Insecure1"></a><a id="Insecure-directory-in-s"></a>Insecure directory in %s</dt>
<dd>

<p>(F) You can&#39;t use system(), exec(), or a piped open in a setuid or setgid script if <code>$ENV{PATH}</code> contains a directory that is writable by the world. Also, the PATH must not contain any relative directory. See <a href="perlsec.html">perlsec</a>.</p>

</dd>
<dt id="Insecure-$ENV{%s}-while-running-%s"><a class="permalink" href="perldiag.html#Insecure-$ENV%7B%25s%7D-while-running-%25s">#</a><a id="Insecure2"></a><a id="Insecure-ENV-s-while-running-s"></a>Insecure $ENV{%s} while running %s</dt>
<dd>

<p>(F) You can&#39;t use system(), exec(), or a piped open in a setuid or setgid script if any of <code>$ENV{PATH}</code>, <code>$ENV{IFS}</code>, <code>$ENV{CDPATH}</code>, <code>$ENV{ENV}</code>, <code>$ENV{BASH_ENV}</code> or <code>$ENV{TERM}</code> are derived from data supplied (or potentially supplied) by the user. The script must set the path to a known value, using trustworthy data. See <a href="perlsec.html">perlsec</a>.</p>

</dd>
<dt id="Insecure-user-defined-property-%s"><a class="permalink" href="perldiag.html#Insecure-user-defined-property-%25s">#</a><a id="Insecure3"></a><a id="Insecure-user-defined-property-s"></a>Insecure user-defined property %s</dt>
<dd>

<p>(F) Perl detected tainted data when trying to compile a regular expression that contains a call to a user-defined character property function, i.e. <code>\p{IsFoo}</code> or <code>\p{InFoo}</code>. See <a href="perlunicode.html#User-Defined-Character-Properties">&quot;User-Defined Character Properties&quot; in perlunicode</a> and <a href="perlsec.html">perlsec</a>.</p>

</dd>
<dt id="Integer-overflow-in-format-string-for-%s"><a class="permalink" href="perldiag.html#Integer-overflow-in-format-string-for-%25s">#</a><a id="Integer"></a><a id="Integer-overflow-in-format-string-for-s"></a>Integer overflow in format string for %s</dt>
<dd>

<p>(F) The indexes and widths specified in the format string of <code>printf()</code> or <code>sprintf()</code> are too large. The numbers must not overflow the size of integers for your architecture.</p>

</dd>
<dt id="Integer-overflow-in-%s-number"><a class="permalink" href="perldiag.html#Integer-overflow-in-%25s-number">#</a><a id="Integer1"></a><a id="Integer-overflow-in-s-number"></a>Integer overflow in %s number</dt>
<dd>

<p>(S overflow) The hexadecimal, octal or binary number you have specified either as a literal or as an argument to hex() or oct() is too big for your architecture, and has been converted to a floating point number. On a 32-bit architecture the largest hexadecimal, octal or binary number representable without overflow is 0xFFFFFFFF, 037777777777, or 0b11111111111111111111111111111111 respectively. Note that Perl transparently promotes all numbers to a floating point representation internally--subject to loss of precision errors in subsequent operations.</p>

</dd>
<dt id="Integer-overflow-in-srand"><a class="permalink" href="perldiag.html#Integer-overflow-in-srand">#</a><a id="Integer2"></a>Integer overflow in srand</dt>
<dd>

<p>(S overflow) The number you have passed to srand is too big to fit in your architecture&#39;s integer representation. The number has been replaced with the largest integer supported (0xFFFFFFFF on 32-bit architectures). This means you may be getting less randomness than you expect, because different random seeds above the maximum will return the same sequence of random numbers.</p>

</dd>
<dt id="Integer-overflow-in-version"><a class="permalink" href="perldiag.html#Integer-overflow-in-version">#</a><a id="Integer3"></a>Integer overflow in version</dt>
<dd>

</dd>
<dt id="Integer-overflow-in-version-%d"><a class="permalink" href="perldiag.html#Integer-overflow-in-version-%25d">#</a><a id="Integer4"></a><a id="Integer-overflow-in-version-d"></a>Integer overflow in version %d</dt>
<dd>

<p>(W overflow) Some portion of a version initialization is too large for the size of integers for your architecture. This is not a warning because there is no rational reason for a version to try and use an element larger than typically 2**32. This is usually caused by trying to use some odd mathematical operation as a version, like 100/9.</p>

</dd>
<dt id="Internal-disaster-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Internal-disaster-in-regex;-marked-by-in-m/%25s/">#</a><a id="Internal-disaster-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Internal"></a><a id="Internal-disaster-in-regex-marked-by----HERE-in-m-s"></a>Internal disaster in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(P) Something went badly wrong in the regular expression parser. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered.</p>

</dd>
<dt id="Internal-inconsistency-in-tracking-vforks"><a class="permalink" href="perldiag.html#Internal-inconsistency-in-tracking-vforks">#</a><a id="Internal1"></a>Internal inconsistency in tracking vforks</dt>
<dd>

<p>(S) A warning peculiar to VMS. Perl keeps track of the number of times you&#39;ve called <code>fork</code> and <code>exec</code>, to determine whether the current call to <code>exec</code> should affect the current script or a subprocess (see <a href="perlvms.html#exec-LIST">&quot;exec LIST&quot; in perlvms</a>). Somehow, this count has become scrambled, so Perl is making a guess and treating this <code>exec</code> as a request to terminate the Perl script and execute the specified command.</p>

</dd>
<dt id="internal-%p-might-conflict-with-future-printf-extensions"><a class="permalink" href="perldiag.html#internal-%25p-might-conflict-with-future-printf-extensions">#</a><a id="internal-%&lt;num&gt;p-might-conflict-with-future-printf-extensions"></a><a id="internal"></a><a id="internal-nump-might-conflict-with-future-printf-extensions"></a>internal %&lt;num&gt;p might conflict with future printf extensions</dt>
<dd>

<p>(S internal) Perl&#39;s internal routine that handles <code>printf</code> and <code>sprintf</code> formatting follows a slightly different set of rules when called from C or XS code. Specifically, formats consisting of digits followed by &quot;p&quot; (e.g., &quot;%7p&quot;) are reserved for future use. If you see this message, then an XS module tried to call that routine with one such reserved format.</p>

</dd>
<dt id="Internal-urp-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Internal-urp-in-regex;-marked-by-in-m/%25s/">#</a><a id="Internal-urp-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Internal2"></a><a id="Internal-urp-in-regex-marked-by----HERE-in-m-s"></a>Internal urp in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(P) Something went badly awry in the regular expression parser. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered.</p>

</dd>
<dt id="%s-(...)-interpreted-as-function"><a class="permalink" href="perldiag.html#%25s-(...)-interpreted-as-function">#</a><a id="s-...-interpreted-as-function"></a>%s (...) interpreted as function</dt>
<dd>

<p>(W syntax) You&#39;ve run afoul of the rule that says that any list operator followed by parentheses turns into a function, with all the list operators arguments found inside the parentheses. See <a href="perlop.html#Terms-and-List-Operators-%28Leftward%29">&quot;Terms and List Operators (Leftward)&quot; in perlop</a>.</p>

</dd>
<dt id="In-&#39;(?...)&#39;,-the-&#39;(&#39;-and-&#39;?&#39;-must-be-adjacent-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#In-&#39;(?...)&#39;,-the-&#39;(&#39;-and-&#39;?&#39;-must-be-adjacent-in-regex;-marked-by-in-m/%25s/">#</a><a id="In-&#39;(?...)&#39;,-the-&#39;(&#39;-and-&#39;?&#39;-must-be-adjacent-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="In"></a><a id="In-...-the-and-must-be-adjacent-in-regex-marked-by----HERE-in-m-s"></a>In &#39;(?...)&#39;, the &#39;(&#39; and &#39;?&#39; must be adjacent in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) The two-character sequence <code>&quot;(?&quot;</code> in this context in a regular expression pattern should be an indivisible token, with nothing intervening between the <code>&quot;(&quot;</code> and the <code>&quot;?&quot;</code>, but you separated them with whitespace.</p>

</dd>
<dt id="In-&#39;(*...)&#39;,-the-&#39;(&#39;-and-&#39;*&#39;-must-be-adjacent-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#In-&#39;(*...)&#39;,-the-&#39;(&#39;-and-&#39;*&#39;-must-be-adjacent-in-regex;-marked-by-in-m/%25s/">#</a><a id="In-&#39;(*...)&#39;,-the-&#39;(&#39;-and-&#39;*&#39;-must-be-adjacent-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="In1"></a><a id="In-...-the-and-must-be-adjacent-in-regex-marked-by----HERE-in-m-s1"></a>In &#39;(*...)&#39;, the &#39;(&#39; and &#39;*&#39; must be adjacent in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) The two-character sequence <code>&quot;(*&quot;</code> in this context in a regular expression pattern should be an indivisible token, with nothing intervening between the <code>&quot;(&quot;</code> and the <code>&quot;*&quot;</code>, but you separated them. Fix the pattern and retry.</p>

</dd>
<dt id="Invalid-%s-attribute:-%s"><a class="permalink" href="perldiag.html#Invalid-%25s-attribute:-%25s">#</a><a id="Invalid"></a><a id="Invalid-s-attribute:-s"></a>Invalid %s attribute: %s</dt>
<dd>

<p>(F) The indicated attribute for a subroutine or variable was not recognized by Perl or by a user-supplied handler. See <a href="attributes.html">attributes</a>.</p>

</dd>
<dt id="Invalid-%s-attributes:-%s"><a class="permalink" href="perldiag.html#Invalid-%25s-attributes:-%25s">#</a><a id="Invalid1"></a><a id="Invalid-s-attributes:-s"></a>Invalid %s attributes: %s</dt>
<dd>

<p>(F) The indicated attributes for a subroutine or variable were not recognized by Perl or by a user-supplied handler. See <a href="attributes.html">attributes</a>.</p>

</dd>
<dt id="Invalid-character-in-charnames-alias-definition;-marked-by-in-&#39;%s"><a class="permalink" href="perldiag.html#Invalid-character-in-charnames-alias-definition;-marked-by-in-&#39;%25s">#</a><a id="Invalid-character-in-charnames-alias-definition;-marked-by-&lt;-HERE-in-&#39;%s"></a><a id="Invalid2"></a><a id="Invalid-character-in-charnames-alias-definition-marked-by----HERE-in-s"></a>Invalid character in charnames alias definition; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in &#39;%s</dt>
<dd>

<p>(F) You tried to create a custom alias for a character name, with the <code>:alias</code> option to <code>use charnames</code> and the specified character in the indicated name isn&#39;t valid. See <a href="charnames.html#CUSTOM-ALIASES">&quot;CUSTOM ALIASES&quot; in charnames</a>.</p>

</dd>
<dt id="Invalid-\0-character-in-%s-for-%s:-%s\0%s"><a class="permalink" href="perldiag.html#Invalid-%5C0-character-in-%25s-for-%25s:-%25s%5C0%25s">#</a><a id="Invalid3"></a><a id="Invalid-0-character-in-s-for-s:-s-0-s"></a>Invalid \0 character in %s for %s: %s\0%s</dt>
<dd>

<p>(W syscalls) Embedded \0 characters in pathnames or other system call arguments produce a warning as of 5.20. The parts after the \0 were formerly ignored by system calls.</p>

</dd>
<dt id="Invalid-character-in-\N{...};-marked-by-in-\N{%s}"><a class="permalink" href="perldiag.html#Invalid-character-in-%5CN%7B...%7D;-marked-by-in-%5CN%7B%25s%7D">#</a><a id="Invalid-character-in-\N{...};-marked-by-&lt;-HERE-in-\N{%s}"></a><a id="Invalid4"></a><a id="Invalid-character-in-N-...-marked-by----HERE-in-N-s"></a>Invalid character in \N{...}; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in \N{%s}</dt>
<dd>

<p>(F) Only certain characters are valid for character names. The indicated one isn&#39;t. See <a href="charnames.html#CUSTOM-ALIASES">&quot;CUSTOM ALIASES&quot; in charnames</a>.</p>

</dd>
<dt id="Invalid-conversion-in-%s:-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Invalid-conversion-in-%25s:-%22%25s%22">#</a><a id="Invalid5"></a><a id="Invalid-conversion-in-s:-s"></a>Invalid conversion in %s: &quot;%s&quot;</dt>
<dd>

<p>(W printf) Perl does not understand the given format conversion. See <a href="perlfunc.html#sprintf">&quot;sprintf&quot; in perlfunc</a>.</p>

</dd>
<dt id="Invalid-escape-in-the-specified-encoding-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Invalid-escape-in-the-specified-encoding-in-regex;-marked-by-in-m/%25s/">#</a><a id="Invalid-escape-in-the-specified-encoding-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Invalid6"></a><a id="Invalid-escape-in-the-specified-encoding-in-regex-marked-by----HERE-in-m-s"></a>Invalid escape in the specified encoding in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp)(F) The numeric escape (for example <code>\xHH</code>) of value &lt; 256 didn&#39;t correspond to a single character through the conversion from the encoding specified by the encoding pragma. The escape was replaced with REPLACEMENT CHARACTER (U+FFFD) instead, except within <span style="white-space: nowrap;"><code>(?[ ])</code></span>, where it is a fatal error. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the escape was discovered.</p>

</dd>
<dt id="Invalid-hexadecimal-number-in-\N{U+...}"><a class="permalink" href="perldiag.html#Invalid-hexadecimal-number-in-%5CN%7BU+...%7D">#</a><a id="Invalid7"></a><a id="Invalid-hexadecimal-number-in-N-U"></a>Invalid hexadecimal number in \N{U+...}</dt>
<dd>

</dd>
<dt id="Invalid-hexadecimal-number-in-\N{U+...}-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Invalid-hexadecimal-number-in-%5CN%7BU+...%7D-in-regex;-marked-by-in-m/%25s/">#</a><a id="Invalid-hexadecimal-number-in-\N{U+...}-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Invalid8"></a><a id="Invalid-hexadecimal-number-in-N-U-...-in-regex-marked-by----HERE-in-m-s"></a>Invalid hexadecimal number in \N{U+...} in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) The character constant represented by <code>...</code> is not a valid hexadecimal number. Either it is empty, or you tried to use a character other than 0 - 9 or A - F, a - f in a hexadecimal number.</p>

</dd>
<dt id="Invalid-module-name-%s-with-%c-option:-contains-single-&#39;:&#39;"><a class="permalink" href="perldiag.html#Invalid-module-name-%25s-with-%25c-option:-contains-single-&#39;:&#39;">#</a><a id="Invalid9"></a><a id="Invalid-module-name-s-with---c-option:-contains-single"></a>Invalid module name %s with -%c option: contains single &#39;:&#39;</dt>
<dd>

<p>(F) The module argument to perl&#39;s <b>-m</b> and <b>-M</b> command-line options cannot contain single colons in the module name, but only in the arguments after &quot;=&quot;. In other words, <b>-MFoo::Bar=:baz</b> is ok, but <b>-MFoo:Bar=baz</b> is not.</p>

</dd>
<dt id="Invalid-mro-name:-&#39;%s&#39;"><a class="permalink" href="perldiag.html#Invalid-mro-name:-&#39;%25s&#39;">#</a><a id="Invalid10"></a><a id="Invalid-mro-name:-s"></a>Invalid mro name: &#39;%s&#39;</dt>
<dd>

<p>(F) You tried to <code>mro::set_mro(&quot;classname&quot;, &quot;foo&quot;)</code> or <code>use mro &#39;foo&#39;</code>, where <code>foo</code> is not a valid method resolution order (MRO). Currently, the only valid ones supported are <code>dfs</code> and <code>c3</code>, unless you have loaded a module that is a MRO plugin. See <a href="mro.html">mro</a> and <a href="perlmroapi.html">perlmroapi</a>.</p>

</dd>
<dt id="Invalid-negative-number-(%s)-in-chr"><a class="permalink" href="perldiag.html#Invalid-negative-number-(%25s)-in-chr">#</a><a id="Invalid11"></a><a id="Invalid-negative-number-s-in-chr"></a>Invalid negative number (%s) in chr</dt>
<dd>

<p>(W utf8) You passed a negative number to <code>chr</code>. Negative numbers are not valid character numbers, so it returns the Unicode replacement character (U+FFFD).</p>

</dd>
<dt id="Invalid-number-&#39;%s&#39;-for-C-option."><a class="permalink" href="perldiag.html#Invalid-number-&#39;%25s&#39;-for-C-option.">#</a><a id="Invalid12"></a><a id="Invalid-number-s-for--C-option"></a>Invalid number &#39;%s&#39; for -C option.</dt>
<dd>

<p>(F) You supplied a number to the -C option that either has extra leading zeroes or overflows perl&#39;s unsigned integer representation.</p>

</dd>
<dt id="invalid-option-D%c,-use-D&#39;&#39;-to-see-choices"><a class="permalink" href="perldiag.html#invalid-option-D%25c,-use-D&#39;&#39;-to-see-choices">#</a><a id="invalid"></a><a id="invalid-option--D-c-use--D-to-see-choices"></a>invalid option -D%c, use -D&#39;&#39; to see choices</dt>
<dd>

<p>(S debugging) Perl was called with invalid debugger flags. Call perl with the <b>-D</b> option with no flags to see the list of acceptable values. See also <a href="perlrun.html#-Dletters">&quot;-Dletters&quot; in perlrun</a>.</p>

</dd>
<dt id="Invalid-quantifier-in-{,}-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Invalid-quantifier-in-%7B,%7D-in-regex;-marked-by-in-m/%25s/">#</a><a id="Invalid-quantifier-in-{,}-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Invalid13"></a><a id="Invalid-quantifier-in-in-regex-marked-by----HERE-in-m-s"></a>Invalid quantifier in {,} in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) The pattern looks like a {min,max} quantifier, but the min or max could not be parsed as a valid number - either it has leading zeroes, or it represents too big a number to cope with. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows where in the regular expression the problem was discovered. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Invalid-[]-range-&quot;%s&quot;-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Invalid-%5B%5D-range-%22%25s%22-in-regex;-marked-by-in-m/%25s/">#</a><a id="Invalid-[]-range-&quot;%s&quot;-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Invalid14"></a><a id="Invalid-range-s-in-regex-marked-by----HERE-in-m-s"></a>Invalid [] range &quot;%s&quot; in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) The range specified in a character class had a minimum character greater than the maximum character. One possibility is that you forgot the <code>{}</code> from your ending <code>\x{}</code> - <code>\x</code> without the curly braces can go only up to <code>ff</code>. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Invalid-range-&quot;%s&quot;-in-transliteration-operator"><a class="permalink" href="perldiag.html#Invalid-range-%22%25s%22-in-transliteration-operator">#</a><a id="Invalid15"></a><a id="Invalid-range-s-in-transliteration-operator"></a>Invalid range &quot;%s&quot; in transliteration operator</dt>
<dd>

<p>(F) The range specified in the tr/// or y/// operator had a minimum character greater than the maximum character. See <a href="perlop.html">perlop</a>.</p>

</dd>
<dt id="Invalid-reference-to-group-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Invalid-reference-to-group-in-regex;-marked-by-in-m/%25s/">#</a><a id="Invalid-reference-to-group-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Invalid16"></a><a id="Invalid-reference-to-group-in-regex-marked-by----HERE-in-m-s"></a>Invalid reference to group in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) The capture group you specified can&#39;t possibly exist because the number you used is not within the legal range of possible values for this machine.</p>

</dd>
<dt id="Invalid-separator-character-%s-in-attribute-list"><a class="permalink" href="perldiag.html#Invalid-separator-character-%25s-in-attribute-list">#</a><a id="Invalid17"></a><a id="Invalid-separator-character-s-in-attribute-list"></a>Invalid separator character %s in attribute list</dt>
<dd>

<p>(F) Something other than a colon or whitespace was seen between the elements of an attribute list. If the previous attribute had a parenthesised parameter list, perhaps that list was terminated too soon. See <a href="attributes.html">attributes</a>.</p>

</dd>
<dt id="Invalid-separator-character-%s-in-PerlIO-layer-specification-%s"><a class="permalink" href="perldiag.html#Invalid-separator-character-%25s-in-PerlIO-layer-specification-%25s">#</a><a id="Invalid18"></a><a id="Invalid-separator-character-s-in-PerlIO-layer-specification-s"></a>Invalid separator character %s in PerlIO layer specification %s</dt>
<dd>

<p>(W layer) When pushing layers onto the Perl I/O system, something other than a colon or whitespace was seen between the elements of a layer list. If the previous attribute had a parenthesised parameter list, perhaps that list was terminated too soon.</p>

</dd>
<dt id="Invalid-strict-version-format-(%s)"><a class="permalink" href="perldiag.html#Invalid-strict-version-format-(%25s)">#</a><a id="Invalid19"></a><a id="Invalid-strict-version-format-s"></a>Invalid strict version format (%s)</dt>
<dd>

<p>(F) A version number did not meet the &quot;strict&quot; criteria for versions. A &quot;strict&quot; version number is a positive decimal number (integer or decimal-fraction) without exponentiation or else a dotted-decimal v-string with a leading &#39;v&#39; character and at least three components. The parenthesized text indicates which criteria were not met. See the <a href="version.html">version</a> module for more details on allowed version formats.</p>

</dd>
<dt id="Invalid-type-&#39;%s&#39;-in-%s"><a class="permalink" href="perldiag.html#Invalid-type-&#39;%25s&#39;-in-%25s">#</a><a id="Invalid20"></a><a id="Invalid-type-s-in-s"></a>Invalid type &#39;%s&#39; in %s</dt>
<dd>

<p>(F) The given character is not a valid pack or unpack type. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

<p>(W) The given character is not a valid pack or unpack type but used to be silently ignored.</p>

</dd>
<dt id="Invalid-version-format-(%s)"><a class="permalink" href="perldiag.html#Invalid-version-format-(%25s)">#</a><a id="Invalid21"></a><a id="Invalid-version-format-s"></a>Invalid version format (%s)</dt>
<dd>

<p>(F) A version number did not meet the &quot;lax&quot; criteria for versions. A &quot;lax&quot; version number is a positive decimal number (integer or decimal-fraction) without exponentiation or else a dotted-decimal v-string. If the v-string has fewer than three components, it must have a leading &#39;v&#39; character. Otherwise, the leading &#39;v&#39; is optional. Both decimal and dotted-decimal versions may have a trailing &quot;alpha&quot; component separated by an underscore character after a fractional or dotted-decimal component. The parenthesized text indicates which criteria were not met. See the <a href="version.html">version</a> module for more details on allowed version formats.</p>

</dd>
<dt id="Invalid-version-object"><a class="permalink" href="perldiag.html#Invalid-version-object">#</a><a id="Invalid22"></a>Invalid version object</dt>
<dd>

<p>(F) The internal structure of the version object was invalid. Perhaps the internals were modified directly in some way or an arbitrary reference was blessed into the &quot;version&quot; class.</p>

</dd>
<dt id="In-&#39;(*VERB...)&#39;,-the-&#39;(&#39;-and-&#39;*&#39;-must-be-adjacent-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#In-&#39;(*VERB...)&#39;,-the-&#39;(&#39;-and-&#39;*&#39;-must-be-adjacent-in-regex;-marked-by-in-m/%25s/">#</a><a id="In-&#39;(*VERB...)&#39;,-the-&#39;(&#39;-and-&#39;*&#39;-must-be-adjacent-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="In2"></a><a id="In-VERB...-the-and-must-be-adjacent-in-regex-marked-by----HERE-in-m-s"></a>In &#39;(*VERB...)&#39;, the &#39;(&#39; and &#39;*&#39; must be adjacent in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

</dd>
<dt id="Inverting-a-character-class-which-contains-a-multi-character-sequence-is-illegal-in-regex;-marked-by-&lt;-HERE-in-m/%s/"><a class="permalink" href="perldiag.html#Inverting-a-character-class-which-contains-a-multi-character-sequence-is-illegal-in-regex;-marked-by-%3C-HERE-in-m/%25s/">#</a><a id="Inverting"></a><a id="Inverting-a-character-class-which-contains-a-multi-character-sequence-is-illegal-in-regex-marked-by----HERE-in-m-s"></a>Inverting a character class which contains a multi-character sequence is illegal in regex; marked by &lt;-- HERE in m/%s/</dt>
<dd>

<p>(F) You wrote something like</p>

<pre><code class="plaintext">qr/\P{name=KATAKANA LETTER AINU P}/
qr/[^\p{name=KATAKANA LETTER AINU P}]/</code></pre>

<p>This name actually evaluates to a sequence of two Katakana characters, not just a single one, and it is illegal to try to take the complement of a sequence. (Mathematically it would mean any sequence of characters from 0 to infinity in length that weren&#39;t these two in a row, and that is likely not of any real use.)</p>

<p>(F) The two-character sequence <code>&quot;(*&quot;</code> in this context in a regular expression pattern should be an indivisible token, with nothing intervening between the <code>&quot;(&quot;</code> and the <code>&quot;*&quot;</code>, but you separated them.</p>

</dd>
<dt id="ioctl-is-not-implemented"><a class="permalink" href="perldiag.html#ioctl-is-not-implemented">#</a><a id="ioctl"></a>ioctl is not implemented</dt>
<dd>

<p>(F) Your machine apparently doesn&#39;t implement ioctl(), which is pretty strange for a machine that supports C.</p>

</dd>
<dt id="ioctl()-on-unopened-%s"><a class="permalink" href="perldiag.html#ioctl()-on-unopened-%25s">#</a><a id="ioctl1"></a><a id="ioctl-on-unopened-s"></a>ioctl() on unopened %s</dt>
<dd>

<p>(W unopened) You tried ioctl() on a filehandle that was never opened. Check your control flow and number of arguments.</p>

</dd>
<dt id="IO-layers-(like-&#39;%s&#39;)-unavailable"><a class="permalink" href="perldiag.html#IO-layers-(like-&#39;%25s&#39;)-unavailable">#</a><a id="IO"></a><a id="IO-layers-like-s-unavailable"></a>IO layers (like &#39;%s&#39;) unavailable</dt>
<dd>

<p>(F) Your Perl has not been configured to have PerlIO, and therefore you cannot use IO layers. To have PerlIO, Perl must be configured with &#39;useperlio&#39;.</p>

</dd>
<dt id="IO::Socket::atmark-not-implemented-on-this-architecture"><a class="permalink" href="perldiag.html#IO::Socket::atmark-not-implemented-on-this-architecture">#</a><a id="IO1"></a>IO::Socket::atmark not implemented on this architecture</dt>
<dd>

<p>(F) Your machine doesn&#39;t implement the sockatmark() functionality, neither as a system call nor an ioctl call (SIOCATMARK).</p>

</dd>
<dt id="&#39;%s&#39;-is-an-unknown-bound-type-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#&#39;%25s&#39;-is-an-unknown-bound-type-in-regex;-marked-by-in-m/%25s/">#</a><a id="&#39;%s&#39;-is-an-unknown-bound-type-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="s-is-an-unknown-bound-type-in-regex-marked-by----HERE-in-m-s"></a>&#39;%s&#39; is an unknown bound type in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You used <code>\b{...}</code> or <code>\B{...}</code> and the <code>...</code> is not known to Perl. The current valid ones are given in <a href="perlrebackslash.html#%5Cb%7B%7D%2C-%5Cb%2C-%5CB%7B%7D%2C-%5CB">&quot;\b{}, \b, \B{}, \B&quot; in perlrebackslash</a>.</p>

</dd>
<dt id="%s-is-forbidden-matches-null-string-many-times-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#%25s-is-forbidden-matches-null-string-many-times-in-regex;-marked-by-in-m/%25s/">#</a><a id="%s-is-forbidden-matches-null-string-many-times-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="s-is-forbidden---matches-null-string-many-times-in-regex-marked-by----HERE-in-m-s"></a>%s is forbidden - matches null string many times in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) The pattern you&#39;ve specified might cause the regular expression to infinite loop so it is forbidden. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="%s()-isn&#39;t-allowed-on-:utf8-handles"><a class="permalink" href="perldiag.html#%25s()-isn&#39;t-allowed-on-:utf8-handles">#</a><a id="s-isnt-allowed-on-:utf8-handles"></a>%s() isn&#39;t allowed on :utf8 handles</dt>
<dd>

<p>(F) The sysread(), recv(), syswrite() and send() operators are not allowed on handles that have the <code>:utf8</code> layer, either explicitly, or implicitly, eg., with the <code>:encoding(UTF-16LE)</code> layer.</p>

<p>Previously sysread() and recv() currently use only the <code>:utf8</code> flag for the stream, ignoring the actual layers. Since sysread() and recv() did no UTF-8 validation they can end up creating invalidly encoded scalars.</p>

<p>Similarly, syswrite() and send() used only the <code>:utf8</code> flag, otherwise ignoring any layers. If the flag is set, both wrote the value UTF-8 encoded, even if the layer is some different encoding, such as the example above.</p>

<p>Ideally, all of these operators would completely ignore the <code>:utf8</code> state, working only with bytes, but this would result in silently breaking existing code.</p>

</dd>
<dt id="&quot;%s&quot;-is-more-clearly-written-simply-as-&quot;%s&quot;-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#%22%25s%22-is-more-clearly-written-simply-as-%22%25s%22-in-regex;-marked-by-in-m/%25s/">#</a><a id="&quot;%s&quot;-is-more-clearly-written-simply-as-&quot;%s&quot;-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="s-is-more-clearly-written-simply-as-s-in-regex-marked-by----HERE-in-m-s"></a>&quot;%s&quot; is more clearly written simply as &quot;%s&quot; in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp) (only under <code><span style="white-space: nowrap;">use re &#39;strict&#39;</span></code> or within <code>(?[...])</code>)</p>

<p>You specified a character that has the given plainer way of writing it, and which is also portable to platforms running with different character sets.</p>

</dd>
<dt id="$*-is-no-longer-supported-as-of-Perl-5.30"><a class="permalink" href="perldiag.html#$*-is-no-longer-supported-as-of-Perl-5.30">#</a><a id="is-no-longer-supported-as-of-Perl-5.30"></a>$* is no longer supported as of Perl 5.30</dt>
<dd>

<p>(F) The special variable <code>$*</code>, deprecated in older perls, was removed in 5.10.0, is no longer supported and is a fatal error as of Perl 5.30. In previous versions of perl the use of <code>$*</code> enabled or disabled multi-line matching within a string.</p>

<p>Instead of using <code>$*</code> you should use the <code>/m</code> (and maybe <code>/s</code>) regexp modifiers. You can enable <code>/m</code> for a lexical scope (even a whole file) with <code>use re &#39;/m&#39;</code>. (In older versions: when <code>$*</code> was set to a true value then all regular expressions behaved as if they were written using <code>/m</code>.)</p>

<p>Use of this variable will be a fatal error in Perl 5.30.</p>

</dd>
<dt id="$#-is-no-longer-supported-as-of-Perl-5.30"><a class="permalink" href="perldiag.html#$%23-is-no-longer-supported-as-of-Perl-5.30">#</a><a id="is-no-longer-supported-as-of-Perl-5.301"></a>$# is no longer supported as of Perl 5.30</dt>
<dd>

<p>(F) The special variable <code>$#</code>, deprecated in older perls, was removed as of 5.10.0, is no longer supported and is a fatal error as of Perl 5.30. You should use the printf/sprintf functions instead.</p>

</dd>
<dt id="&#39;%s&#39;-is-not-a-code-reference"><a class="permalink" href="perldiag.html#&#39;%25s&#39;-is-not-a-code-reference">#</a><a id="s-is-not-a-code-reference"></a>&#39;%s&#39; is not a code reference</dt>
<dd>

<p>(W overload) The second (fourth, sixth, ...) argument of overload::constant needs to be a code reference. Either an anonymous subroutine, or a reference to a subroutine.</p>

</dd>
<dt id="&#39;%s&#39;-is-not-an-overloadable-type"><a class="permalink" href="perldiag.html#&#39;%25s&#39;-is-not-an-overloadable-type">#</a><a id="s-is-not-an-overloadable-type"></a>&#39;%s&#39; is not an overloadable type</dt>
<dd>

<p>(W overload) You tried to overload a constant type the overload package is unaware of.</p>

</dd>
<dt id="isa-is-experimental"><a class="permalink" href="perldiag.html#isa-is-experimental">#</a><a id="isa"></a>isa is experimental</dt>
<dd>

<p>(S experimental::isa) This warning is emitted if you use the (<code>isa</code>) operator. This operator is currently experimental and its behaviour may change in future releases of Perl.</p>

</dd>
<dt id="-i-used-with-no-filenames-on-the-command-line,-reading-from-STDIN"><a class="permalink" href="perldiag.html#-i-used-with-no-filenames-on-the-command-line,-reading-from-STDIN">#</a><a id="i-used-with-no-filenames-on-the-command-line-reading-from-STDIN"></a>-i used with no filenames on the command line, reading from STDIN</dt>
<dd>

<p>(S inplace) The <code>-i</code> option was passed on the command line, indicating that the script is intended to edit files in place, but no files were given. This is usually a mistake, since editing STDIN in place doesn&#39;t make sense, and can be confusing because it can make perl look like it is hanging when it is really just trying to read from STDIN. You should either pass a filename to edit, or remove <code>-i</code> from the command line. See <a href="perlrun.html#-i%5Bextension%5D">perlrun</a> for more details.</p>

</dd>
<dt id="Junk-on-end-of-regexp-in-regex-m/%s/"><a class="permalink" href="perldiag.html#Junk-on-end-of-regexp-in-regex-m/%25s/">#</a><a id="Junk"></a><a id="Junk-on-end-of-regexp-in-regex-m-s"></a>Junk on end of regexp in regex m/%s/</dt>
<dd>

<p>(P) The regular expression parser is confused.</p>

</dd>
<dt id="\K-not-permitted-in-lookahead/lookbehind-in-regex;-marked-by-&lt;-HERE-in-m/%s/"><a class="permalink" href="perldiag.html#%5CK-not-permitted-in-lookahead/lookbehind-in-regex;-marked-by-%3C-HERE-in-m/%25s/">#</a><a id="K-not-permitted-in-lookahead-lookbehind-in-regex-marked-by----HERE-in-m-s"></a>\K not permitted in lookahead/lookbehind in regex; marked by &lt;-- HERE in m/%s/</dt>
<dd>

<p>(F) Your regular expression used <code>\K</code> in a lookahead or lookbehind assertion, which currently isn&#39;t permitted.</p>

<p>This may change in the future, see <a href="https://github.com/Perl/perl5/issues/18134">Support \K in lookarounds</a>.</p>

</dd>
<dt id="Label-not-found-for-&quot;last-%s&quot;"><a class="permalink" href="perldiag.html#Label-not-found-for-%22last-%25s%22">#</a><a id="Label"></a><a id="Label-not-found-for-last-s"></a>Label not found for &quot;last %s&quot;</dt>
<dd>

<p>(F) You named a loop to break out of, but you&#39;re not currently in a loop of that name, not even if you count where you were called from. See <a href="perlfunc.html#last">&quot;last&quot; in perlfunc</a>.</p>

</dd>
<dt id="Label-not-found-for-&quot;next-%s&quot;"><a class="permalink" href="perldiag.html#Label-not-found-for-%22next-%25s%22">#</a><a id="Label1"></a><a id="Label-not-found-for-next-s"></a>Label not found for &quot;next %s&quot;</dt>
<dd>

<p>(F) You named a loop to continue, but you&#39;re not currently in a loop of that name, not even if you count where you were called from. See <a href="perlfunc.html#last">&quot;last&quot; in perlfunc</a>.</p>

</dd>
<dt id="Label-not-found-for-&quot;redo-%s&quot;"><a class="permalink" href="perldiag.html#Label-not-found-for-%22redo-%25s%22">#</a><a id="Label2"></a><a id="Label-not-found-for-redo-s"></a>Label not found for &quot;redo %s&quot;</dt>
<dd>

<p>(F) You named a loop to restart, but you&#39;re not currently in a loop of that name, not even if you count where you were called from. See <a href="perlfunc.html#last">&quot;last&quot; in perlfunc</a>.</p>

</dd>
<dt id="leaving-effective-%s-failed"><a class="permalink" href="perldiag.html#leaving-effective-%25s-failed">#</a><a id="leaving"></a><a id="leaving-effective-s-failed"></a>leaving effective %s failed</dt>
<dd>

<p>(F) While under the <code>use filetest</code> pragma, switching the real and effective uids or gids failed.</p>

</dd>
<dt id="length/code-after-end-of-string-in-unpack"><a class="permalink" href="perldiag.html#length/code-after-end-of-string-in-unpack">#</a><a id="length"></a><a id="length-code-after-end-of-string-in-unpack"></a>length/code after end of string in unpack</dt>
<dd>

<p>(F) While unpacking, the string buffer was already used up when an unpack length/code combination tried to obtain more data. This results in an undefined value for the length. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="length()-used-on-%s-(did-you-mean-&quot;scalar(%s)&quot;?)"><a class="permalink" href="perldiag.html#length()-used-on-%25s-(did-you-mean-%22scalar(%25s)%22?)">#</a><a id="length1"></a><a id="length-used-on-s-did-you-mean-scalar-s"></a>length() used on %s (did you mean &quot;scalar(%s)&quot;?)</dt>
<dd>

<p>(W syntax) You used length() on either an array or a hash when you probably wanted a count of the items.</p>

<p>Array size can be obtained by doing:</p>

<pre><code>scalar(@array);</code></pre>

<p>The number of items in a hash can be obtained by doing:</p>

<pre><code>scalar(keys %hash);</code></pre>

</dd>
<dt id="Lexing-code-attempted-to-stuff-non-Latin-1-character-into-Latin-1-input"><a class="permalink" href="perldiag.html#Lexing-code-attempted-to-stuff-non-Latin-1-character-into-Latin-1-input">#</a><a id="Lexing"></a>Lexing code attempted to stuff non-Latin-1 character into Latin-1 input</dt>
<dd>

<p>(F) An extension is attempting to insert text into the current parse (using <a href="perlapi.html#lex_stuff_pvn">lex_stuff_pvn</a> or similar), but tried to insert a character that couldn&#39;t be part of the current input. This is an inherent pitfall of the stuffing mechanism, and one of the reasons to avoid it. Where it is necessary to stuff, stuffing only plain ASCII is recommended.</p>

</dd>
<dt id="Lexing-code-internal-error-(%s)"><a class="permalink" href="perldiag.html#Lexing-code-internal-error-(%25s)">#</a><a id="Lexing1"></a><a id="Lexing-code-internal-error-s"></a>Lexing code internal error (%s)</dt>
<dd>

<p>(F) Lexing code supplied by an extension violated the lexer&#39;s API in a detectable way.</p>

</dd>
<dt id="listen()-on-closed-socket-%s"><a class="permalink" href="perldiag.html#listen()-on-closed-socket-%25s">#</a><a id="listen"></a><a id="listen-on-closed-socket-s"></a>listen() on closed socket %s</dt>
<dd>

<p>(W closed) You tried to do a listen on a closed socket. Did you forget to check the return value of your socket() call? See <a href="perlfunc.html#listen">&quot;listen&quot; in perlfunc</a>.</p>

</dd>
<dt id="List-form-of-piped-open-not-implemented"><a class="permalink" href="perldiag.html#List-form-of-piped-open-not-implemented">#</a><a id="List"></a>List form of piped open not implemented</dt>
<dd>

<p>(F) On some platforms, notably Windows, the three-or-more-arguments form of <code>open</code> does not support pipes, such as <code>open($pipe, &#39;|-&#39;, @args)</code>. Use the two-argument <code>open($pipe, &#39;|prog arg1 arg2...&#39;)</code> form instead.</p>

</dd>
<dt id="Literal-vertical-space-in-[]-is-illegal-except-under-/x-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Literal-vertical-space-in-%5B%5D-is-illegal-except-under-/x-in-regex;-marked-by-in-m/%25s/">#</a><a id="Literal-vertical-space-in-[]-is-illegal-except-under-/x-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Literal"></a><a id="Literal-vertical-space-in-is-illegal-except-under-x-in-regex-marked-by----HERE-in-m-s"></a>Literal vertical space in [] is illegal except under /x in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) (only under <code><span style="white-space: nowrap;">use re &#39;strict&#39;</span></code> or within <code>(?[...])</code>)</p>

<p>Likely you forgot the <code>/x</code> modifier or there was a typo in the pattern. For example, did you really mean to match a form-feed? If so, all the ASCII vertical space control characters are representable by escape sequences which won&#39;t present such a jarring appearance as your pattern does when displayed.</p>

<pre><code class="plaintext">\r    carriage return
\f    form feed
\n    line feed
\cK   vertical tab</code></pre>

</dd>
<dt id="%s:-loadable-library-and-perl-binaries-are-mismatched-(got-handshake-key-%p,-needed-%p)"><a class="permalink" href="perldiag.html#%25s:-loadable-library-and-perl-binaries-are-mismatched-(got-handshake-key-%25p,-needed-%25p)">#</a><a id="s:-loadable-library-and-perl-binaries-are-mismatched-got-handshake-key-p-needed-p"></a>%s: loadable library and perl binaries are mismatched (got handshake key %p, needed %p)</dt>
<dd>

<p>(P) A dynamic loading library <code>.so</code> or <code>.dll</code> was being loaded into the process that was built against a different build of perl than the said library was compiled against. Reinstalling the XS module will likely fix this error.</p>

</dd>
<dt id="Locale-&#39;%s&#39;-contains-(at-least)-the-following-characters-which-have-unexpected-meanings:-%s-The-Perl-program-will-use-the-expected-meanings"><a class="permalink" href="perldiag.html#Locale-&#39;%25s&#39;-contains-(at-least)-the-following-characters-which-have-unexpected-meanings:-%25s-The-Perl-program-will-use-the-expected-meanings">#</a><a id="Locale"></a><a id="Locale-s-contains-at-least-the-following-characters-which-have-unexpected-meanings:-s-The-Perl-program-will-use-the-expected-meanings"></a>Locale &#39;%s&#39; contains (at least) the following characters which have unexpected meanings: %s The Perl program will use the expected meanings</dt>
<dd>

<p>(W locale) You are using the named UTF-8 locale. UTF-8 locales are expected to have very particular behavior, which most do. This message arises when perl found some departures from the expectations, and is notifying you that the expected behavior overrides these differences. In some cases the differences are caused by the locale definition being defective, but the most common causes of this warning are when there are ambiguities and conflicts in following the Standard, and the locale has chosen an approach that differs from Perl&#39;s.</p>

<p>One of these is because that, contrary to the claims, Unicode is not completely locale insensitive. Turkish and some related languages have two types of <code>&quot;I&quot;</code> characters. One is dotted in both upper- and lowercase, and the other is dotless in both cases. Unicode allows a locale to use either the Turkish rules, or the rules used in all other instances, where there is only one type of <code>&quot;I&quot;</code>, which is dotless in the uppercase, and dotted in the lower. The perl core does not (yet) handle the Turkish case, and this message warns you of that. Instead, the <a href="./Unicode::Casing.html">Unicode::Casing</a> module allows you to mostly implement the Turkish casing rules.</p>

<p>The other common cause is for the characters</p>

<pre><code class="plaintext">$ + &lt; = &gt; ^ ` | ~</code></pre>

<p>These are problematic. The C standard says that these should be considered punctuation in the C locale (and the POSIX standard defers to the C standard), and Unicode is generally considered a superset of the C locale. But Unicode has added an extra category, &quot;Symbol&quot;, and classifies these particular characters as being symbols. Most UTF-8 locales have them treated as punctuation, so that <a href="http://man.he.net/man2/ispunct">ispunct(2)</a> returns non-zero for them. But a few locales have it return 0. Perl takes the first approach, not using <code>ispunct()</code> at all (see <a href="perlrecharclass.html#%5B5%5D">Note [5] in perlrecharclass</a>), and this message is raised to notify you that you are getting Perl&#39;s approach, not the locale&#39;s.</p>

</dd>
<dt id="Locale-&#39;%s&#39;-may-not-work-well.%s"><a class="permalink" href="perldiag.html#Locale-&#39;%25s&#39;-may-not-work-well.%25s">#</a><a id="Locale1"></a><a id="Locale-s-may-not-work-well.-s"></a>Locale &#39;%s&#39; may not work well.%s</dt>
<dd>

<p>(W locale) You are using the named locale, which is a non-UTF-8 one, and which perl has determined is not fully compatible with what it can handle. The second <code>%s</code> gives a reason.</p>

<p>By far the most common reason is that the locale has characters in it that are represented by more than one byte. The only such locales that Perl can handle are the UTF-8 locales. Most likely the specified locale is a non-UTF-8 one for an East Asian language such as Chinese or Japanese. If the locale is a superset of ASCII, the ASCII portion of it may work in Perl.</p>

<p>Some essentially obsolete locales that aren&#39;t supersets of ASCII, mainly those in ISO 646 or other 7-bit locales, such as ASMO 449, can also have problems, depending on what portions of the ASCII character set get changed by the locale and are also used by the program. The warning message lists the determinable conflicting characters.</p>

<p>Note that not all incompatibilities are found.</p>

<p>If this happens to you, there&#39;s not much you can do except switch to use a different locale or use <a href="Encode.html">Encode</a> to translate from the locale into UTF-8; if that&#39;s impracticable, you have been warned that some things may break.</p>

<p>This message is output once each time a bad locale is switched into within the scope of <code><span style="white-space: nowrap;">use locale</span></code>, or on the first possibly-affected operation if the <code><span style="white-space: nowrap;">use locale</span></code> inherits a bad one. It is not raised for any operations from the <a href="POSIX.html">POSIX</a> module.</p>

</dd>
<dt id="localtime(%f)-failed"><a class="permalink" href="perldiag.html#localtime(%25f)-failed">#</a><a id="localtime"></a><a id="localtime-f-failed"></a>localtime(%f) failed</dt>
<dd>

<p>(W overflow) You called <code>localtime</code> with a number that it could not handle: too large, too small, or NaN. The returned value is <code>undef</code>.</p>

</dd>
<dt id="localtime(%f)-too-large"><a class="permalink" href="perldiag.html#localtime(%25f)-too-large">#</a><a id="localtime1"></a><a id="localtime-f-too-large"></a>localtime(%f) too large</dt>
<dd>

<p>(W overflow) You called <code>localtime</code> with a number that was larger than it can reliably handle and <code>localtime</code> probably returned the wrong date. This warning is also triggered with NaN (the special not-a-number value).</p>

</dd>
<dt id="localtime(%f)-too-small"><a class="permalink" href="perldiag.html#localtime(%25f)-too-small">#</a><a id="localtime2"></a><a id="localtime-f-too-small"></a>localtime(%f) too small</dt>
<dd>

<p>(W overflow) You called <code>localtime</code> with a number that was smaller than it can reliably handle and <code>localtime</code> probably returned the wrong date.</p>

</dd>
<dt id="Lookbehind-longer-than-%d-not-implemented-in-regex-m/%s/"><a class="permalink" href="perldiag.html#Lookbehind-longer-than-%25d-not-implemented-in-regex-m/%25s/">#</a><a id="Lookbehind"></a><a id="Lookbehind-longer-than-d-not-implemented-in-regex-m-s"></a>Lookbehind longer than %d not implemented in regex m/%s/</dt>
<dd>

<p>(F) There is currently a limit on the length of string which lookbehind can handle. This restriction may be eased in a future release.</p>

</dd>
<dt id="Lost-precision-when-%s-%f-by-1"><a class="permalink" href="perldiag.html#Lost-precision-when-%25s-%25f-by-1">#</a><a id="Lost"></a><a id="Lost-precision-when-s-f-by-1"></a>Lost precision when %s %f by 1</dt>
<dd>

<p>(W imprecision) You attempted to increment or decrement a value by one, but the result is too large for the underlying floating point representation to store accurately. Hence, the target of <code>++</code> or <code>--</code> is increased or decreased by quite different value than one, such as zero (<i>i.e.</i> the target is unchanged) or two, due to rounding. Perl issues this warning because it has already switched from integers to floating point when values are too large for integers, and now even floating point is insufficient. You may wish to switch to using <a href="./Math::BigInt.html">Math::BigInt</a> explicitly.</p>

</dd>
<dt id="lstat()-on-filehandle%s"><a class="permalink" href="perldiag.html#lstat()-on-filehandle%25s">#</a><a id="lstat"></a><a id="lstat-on-filehandle-s"></a>lstat() on filehandle%s</dt>
<dd>

<p>(W io) You tried to do an lstat on a filehandle. What did you mean by that? lstat() makes sense only on filenames. (Perl did a fstat() instead on the filehandle.)</p>

</dd>
<dt id="lvalue-attribute-%s-already-defined-subroutine"><a class="permalink" href="perldiag.html#lvalue-attribute-%25s-already-defined-subroutine">#</a><a id="lvalue"></a><a id="lvalue-attribute-s-already-defined-subroutine"></a>lvalue attribute %s already-defined subroutine</dt>
<dd>

<p>(W misc) Although <a href="attributes.html">attributes.pm</a> allows this, turning the lvalue attribute on or off on a Perl subroutine that is already defined does not always work properly. It may or may not do what you want, depending on what code is inside the subroutine, with exact details subject to change between Perl versions. Only do this if you really know what you are doing.</p>

</dd>
<dt id="lvalue-attribute-ignored-after-the-subroutine-has-been-defined"><a class="permalink" href="perldiag.html#lvalue-attribute-ignored-after-the-subroutine-has-been-defined">#</a><a id="lvalue1"></a>lvalue attribute ignored after the subroutine has been defined</dt>
<dd>

<p>(W misc) Using the <code>:lvalue</code> declarative syntax to make a Perl subroutine an lvalue subroutine after it has been defined is not permitted. To make the subroutine an lvalue subroutine, add the lvalue attribute to the definition, or put the <code>sub foo :lvalue;</code> declaration before the definition.</p>

<p>See also <a href="attributes.html">attributes.pm</a>.</p>

</dd>
<dt id="Magical-list-constants-are-not-supported"><a class="permalink" href="perldiag.html#Magical-list-constants-are-not-supported">#</a><a id="Magical"></a>Magical list constants are not supported</dt>
<dd>

<p>(F) You assigned a magical array to a stash element, and then tried to use the subroutine from the same slot. You are asking Perl to do something it cannot do, details subject to change between Perl versions.</p>

</dd>
<dt id="Malformed-integer-in-[]-in-pack"><a class="permalink" href="perldiag.html#Malformed-integer-in-%5B%5D-in-pack">#</a><a id="Malformed"></a><a id="Malformed-integer-in-in-pack"></a>Malformed integer in [] in pack</dt>
<dd>

<p>(F) Between the brackets enclosing a numeric repeat count only digits are permitted. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="Malformed-integer-in-[]-in-unpack"><a class="permalink" href="perldiag.html#Malformed-integer-in-%5B%5D-in-unpack">#</a><a id="Malformed1"></a><a id="Malformed-integer-in-in-unpack"></a>Malformed integer in [] in unpack</dt>
<dd>

<p>(F) Between the brackets enclosing a numeric repeat count only digits are permitted. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="Malformed-PERLLIB_PREFIX"><a class="permalink" href="perldiag.html#Malformed-PERLLIB_PREFIX">#</a><a id="Malformed2"></a>Malformed PERLLIB_PREFIX</dt>
<dd>

<p>(F) An error peculiar to OS/2. PERLLIB_PREFIX should be of the form</p>

<pre><code class="plaintext">prefix1;prefix2</code></pre>

<p>or prefix1 prefix2</p>

<p>with nonempty prefix1 and prefix2. If <code>prefix1</code> is indeed a prefix of a builtin library search path, prefix2 is substituted. The error may appear if components are not found, or are too long. See &quot;PERLLIB_PREFIX&quot; in <a href="perlos2.html">perlos2</a>.</p>

</dd>
<dt id="Malformed-prototype-for-%s:-%s"><a class="permalink" href="perldiag.html#Malformed-prototype-for-%25s:-%25s">#</a><a id="Malformed3"></a><a id="Malformed-prototype-for-s:-s"></a>Malformed prototype for %s: %s</dt>
<dd>

<p>(F) You tried to use a function with a malformed prototype. The syntax of function prototypes is given a brief compile-time check for obvious errors like invalid characters. A more rigorous check is run when the function is called. Perhaps the function&#39;s author was trying to write a subroutine signature but didn&#39;t enable that feature first (<code>use feature &#39;signatures&#39;</code>), so the signature was instead interpreted as a bad prototype.</p>

</dd>
<dt id="Malformed-UTF-8-character%s"><a class="permalink" href="perldiag.html#Malformed-UTF-8-character%25s">#</a><a id="Malformed4"></a><a id="Malformed-UTF-8-character-s"></a>Malformed UTF-8 character%s</dt>
<dd>

<p>(S utf8)(F) Perl detected a string that should be UTF-8, but didn&#39;t comply with UTF-8 encoding rules, or represents a code point whose ordinal integer value doesn&#39;t fit into the word size of the current platform (overflows). Details as to the exact malformation are given in the variable, <code>%s</code>, part of the message.</p>

<p>One possible cause is that you set the UTF8 flag yourself for data that you thought to be in UTF-8 but it wasn&#39;t (it was for example legacy 8-bit data). To guard against this, you can use <code>Encode::decode(&#39;UTF-8&#39;, ...)</code>.</p>

<p>If you use the <code>:encoding(UTF-8)</code> PerlIO layer for input, invalid byte sequences are handled gracefully, but if you use <code>:utf8</code>, the flag is set without validating the data, possibly resulting in this error message.</p>

<p>See also <a href="Encode.html#Handling-Malformed-Data">&quot;Handling Malformed Data&quot; in Encode</a>.</p>

</dd>
<dt id="Malformed-UTF-8-returned-by-\N{%s}-immediately-after-&#39;%s&#39;"><a class="permalink" href="perldiag.html#Malformed-UTF-8-returned-by-%5CN%7B%25s%7D-immediately-after-&#39;%25s&#39;">#</a><a id="Malformed5"></a><a id="Malformed-UTF-8-returned-by-N-s-immediately-after-s"></a>Malformed UTF-8 returned by \N{%s} immediately after &#39;%s&#39;</dt>
<dd>

<p>(F) The charnames handler returned malformed UTF-8.</p>

</dd>
<dt id="Malformed-UTF-8-string-in-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Malformed-UTF-8-string-in-%22%25s%22">#</a><a id="Malformed6"></a><a id="Malformed-UTF-8-string-in-s"></a>Malformed UTF-8 string in &quot;%s&quot;</dt>
<dd>

<p>(F) This message indicates a bug either in the Perl core or in XS code. Such code was trying to find out if a character, allegedly stored internally encoded as UTF-8, was of a given type, such as being punctuation or a digit. But the character was not encoded in legal UTF-8. The <code>%s</code> is replaced by a string that can be used by knowledgeable people to determine what the type being checked against was.</p>

<p>Passing malformed strings was deprecated in Perl 5.18, and became fatal in Perl 5.26.</p>

</dd>
<dt id="Malformed-UTF-8-string-in-&#39;%c&#39;-format-in-unpack"><a class="permalink" href="perldiag.html#Malformed-UTF-8-string-in-&#39;%25c&#39;-format-in-unpack">#</a><a id="Malformed7"></a><a id="Malformed-UTF-8-string-in-c-format-in-unpack"></a>Malformed UTF-8 string in &#39;%c&#39; format in unpack</dt>
<dd>

<p>(F) You tried to unpack something that didn&#39;t comply with UTF-8 encoding rules and perl was unable to guess how to make more progress.</p>

</dd>
<dt id="Malformed-UTF-8-string-in-pack"><a class="permalink" href="perldiag.html#Malformed-UTF-8-string-in-pack">#</a><a id="Malformed8"></a>Malformed UTF-8 string in pack</dt>
<dd>

<p>(F) You tried to pack something that didn&#39;t comply with UTF-8 encoding rules and perl was unable to guess how to make more progress.</p>

</dd>
<dt id="Malformed-UTF-8-string-in-unpack"><a class="permalink" href="perldiag.html#Malformed-UTF-8-string-in-unpack">#</a><a id="Malformed9"></a>Malformed UTF-8 string in unpack</dt>
<dd>

<p>(F) You tried to unpack something that didn&#39;t comply with UTF-8 encoding rules and perl was unable to guess how to make more progress.</p>

</dd>
<dt id="Malformed-UTF-16-surrogate"><a class="permalink" href="perldiag.html#Malformed-UTF-16-surrogate">#</a><a id="Malformed10"></a>Malformed UTF-16 surrogate</dt>
<dd>

<p>(F) Perl thought it was reading UTF-16 encoded character data but while doing it Perl met a malformed Unicode surrogate.</p>

</dd>
<dt id="Mandatory-parameter-follows-optional-parameter"><a class="permalink" href="perldiag.html#Mandatory-parameter-follows-optional-parameter">#</a><a id="Mandatory"></a>Mandatory parameter follows optional parameter</dt>
<dd>

<p>(F) In a subroutine signature, you wrote something like &quot;$a = undef, $b&quot;, making an earlier parameter optional and a later one mandatory. Parameters are filled from left to right, so it&#39;s impossible for the caller to omit an earlier one and pass a later one. If you want to act as if the parameters are filled from right to left, declare the rightmost optional and then shuffle the parameters around in the subroutine&#39;s body.</p>

</dd>
<dt id="Matched-non-Unicode-code-point-0x%X-against-Unicode-property;-may-not-be-portable"><a class="permalink" href="perldiag.html#Matched-non-Unicode-code-point-0x%25X-against-Unicode-property;-may-not-be-portable">#</a><a id="Matched"></a><a id="Matched-non-Unicode-code-point-0x-X-against-Unicode-property-may-not-be-portable"></a>Matched non-Unicode code point 0x%X against Unicode property; may not be portable</dt>
<dd>

<p>(S non_unicode) Perl allows strings to contain a superset of Unicode code points; each code point may be as large as what is storable in a signed integer on your system, but these may not be accepted by other languages/systems. This message occurs when you matched a string containing such a code point against a regular expression pattern, and the code point was matched against a Unicode property, <code>\p{...}</code> or <code>\P{...}</code>. Unicode properties are only defined on Unicode code points, so the result of this match is undefined by Unicode, but Perl (starting in v5.20) treats non-Unicode code points as if they were typical unassigned Unicode ones, and matched this one accordingly. Whether a given property matches these code points or not is specified in <a href="perluniprops.html#Properties-accessible-through-%5Cp%7B%7D-and-%5CP%7B%7D">&quot;Properties accessible through \p{} and \P{}&quot; in perluniprops</a>.</p>

<p>This message is suppressed (unless it has been made fatal) if it is immaterial to the results of the match if the code point is Unicode or not. For example, the property <code>\p{ASCII_Hex_Digit}</code> only can match the 22 characters <code>[0-9A-Fa-f]</code>, so obviously all other code points, Unicode or not, won&#39;t match it. (And <code>\P{ASCII_Hex_Digit}</code> will match every code point except these 22.)</p>

<p>Getting this message indicates that the outcome of the match arguably should have been the opposite of what actually happened. If you think that is the case, you may wish to make the <code>non_unicode</code> warnings category fatal; if you agree with Perl&#39;s decision, you may wish to turn off this category.</p>

<p>See <a href="perlunicode.html#Beyond-Unicode-code-points">&quot;Beyond Unicode code points&quot; in perlunicode</a> for more information.</p>

</dd>
<dt id="%s-matches-null-string-many-times-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#%25s-matches-null-string-many-times-in-regex;-marked-by-in-m/%25s/">#</a><a id="%s-matches-null-string-many-times-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="s-matches-null-string-many-times-in-regex-marked-by----HERE-in-m-s"></a>%s matches null string many times in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp) The pattern you&#39;ve specified would be an infinite loop if the regular expression engine didn&#39;t specifically check for that. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Maximal-count-of-pending-signals-(%u)-exceeded"><a class="permalink" href="perldiag.html#Maximal-count-of-pending-signals-(%25u)-exceeded">#</a><a id="Maximal"></a><a id="Maximal-count-of-pending-signals-u-exceeded"></a>Maximal count of pending signals (%u) exceeded</dt>
<dd>

<p>(F) Perl aborted due to too high a number of signals pending. This usually indicates that your operating system tried to deliver signals too fast (with a very high priority), starving the perl process from resources it would need to reach a point where it can process signals safely. (See <a href="perlipc.html#Deferred-Signals-%28Safe-Signals%29">&quot;Deferred Signals (Safe Signals)&quot; in perlipc</a>.)</p>

</dd>
<dt id="&quot;%s&quot;-may-clash-with-future-reserved-word"><a class="permalink" href="perldiag.html#%22%25s%22-may-clash-with-future-reserved-word">#</a><a id="s-may-clash-with-future-reserved-word"></a>&quot;%s&quot; may clash with future reserved word</dt>
<dd>

<p>(W) This warning may be due to running a perl5 script through a perl4 interpreter, especially if the word that is being warned about is &quot;use&quot; or &quot;my&quot;.</p>

</dd>
<dt id="&#39;%&#39;-may-not-be-used-in-pack"><a class="permalink" href="perldiag.html#&#39;%25&#39;-may-not-be-used-in-pack">#</a><a id="may-not-be-used-in-pack"></a>&#39;%&#39; may not be used in pack</dt>
<dd>

<p>(F) You can&#39;t pack a string by supplying a checksum, because the checksumming process loses information, and you can&#39;t go the other way. See <a href="perlfunc.html#unpack">&quot;unpack&quot; in perlfunc</a>.</p>

</dd>
<dt id="Method-for-operation-%s-not-found-in-package-%s-during-blessing"><a class="permalink" href="perldiag.html#Method-for-operation-%25s-not-found-in-package-%25s-during-blessing">#</a><a id="Method"></a><a id="Method-for-operation-s-not-found-in-package-s-during-blessing"></a>Method for operation %s not found in package %s during blessing</dt>
<dd>

<p>(F) An attempt was made to specify an entry in an overloading table that doesn&#39;t resolve to a valid subroutine. See <a href="overload.html">overload</a>.</p>

</dd>
<dt id="Method-%s-not-permitted"><a class="permalink" href="perldiag.html#Method-%25s-not-permitted">#</a><a id="Method1"></a><a id="Method-s-not-permitted"></a>Method %s not permitted</dt>
<dd>

<p>See <a href="perldiag.html#500-Server-error">&quot;500 Server error&quot;</a>.</p>

</dd>
<dt id="Might-be-a-runaway-multi-line-%s-string-starting-on-line-%d"><a class="permalink" href="perldiag.html#Might-be-a-runaway-multi-line-%25s-string-starting-on-line-%25d">#</a><a id="Might"></a><a id="Might-be-a-runaway-multi-line-s-string-starting-on-line-d"></a>Might be a runaway multi-line %s string starting on line %d</dt>
<dd>

<p>(S) An advisory indicating that the previous error may have been caused by a missing delimiter on a string or pattern, because it eventually ended earlier on the current line.</p>

</dd>
<dt id="Misplaced-_-in-number"><a class="permalink" href="perldiag.html#Misplaced-_-in-number">#</a><a id="Misplaced"></a>Misplaced _ in number</dt>
<dd>

<p>(W syntax) An underscore (underbar) in a numeric constant did not separate two digits.</p>

</dd>
<dt id="Missing-argument-for-%n-in-%s"><a class="permalink" href="perldiag.html#Missing-argument-for-%25n-in-%25s">#</a><a id="Missing"></a><a id="Missing-argument-for-n-in-s"></a>Missing argument for %n in %s</dt>
<dd>

<p>(F) A <code>%n</code> was used in a format string with no corresponding argument for perl to write the current string length to.</p>

</dd>
<dt id="Missing-argument-in-%s"><a class="permalink" href="perldiag.html#Missing-argument-in-%25s">#</a><a id="Missing1"></a><a id="Missing-argument-in-s"></a>Missing argument in %s</dt>
<dd>

<p>(W missing) You called a function with fewer arguments than other arguments you supplied indicated would be needed.</p>

<p>Currently only emitted when a printf-type format required more arguments than were supplied, but might be used in the future for other cases where we can statically determine that arguments to functions are missing, e.g. for the <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a> function.</p>

</dd>
<dt id="Missing-argument-to-%c"><a class="permalink" href="perldiag.html#Missing-argument-to-%25c">#</a><a id="Missing2"></a><a id="Missing-argument-to---c"></a>Missing argument to -%c</dt>
<dd>

<p>(F) The argument to the indicated command line switch must follow immediately after the switch, without intervening spaces.</p>

</dd>
<dt id="Missing-braces-on-\N{}"><a class="permalink" href="perldiag.html#Missing-braces-on-%5CN%7B%7D">#</a><a id="Missing3"></a><a id="Missing-braces-on-N"></a>Missing braces on \N{}</dt>
<dd>

</dd>
<dt id="Missing-braces-on-\N{}-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Missing-braces-on-%5CN%7B%7D-in-regex;-marked-by-in-m/%25s/">#</a><a id="Missing-braces-on-\N{}-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Missing4"></a><a id="Missing-braces-on-N-in-regex-marked-by----HERE-in-m-s"></a>Missing braces on \N{} in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) Wrong syntax of character name literal <code>\N{charname}</code> within double-quotish context. This can also happen when there is a space (or comment) between the <code>\N</code> and the <code>{</code> in a regex with the <code>/x</code> modifier. This modifier does not change the requirement that the brace immediately follow the <code>\N</code>.</p>

</dd>
<dt id="Missing-braces-on-\o{}"><a class="permalink" href="perldiag.html#Missing-braces-on-%5Co%7B%7D">#</a><a id="Missing5"></a><a id="Missing-braces-on-o"></a>Missing braces on \o{}</dt>
<dd>

<p>(F) A <code>\o</code> must be followed immediately by a <code>{</code> in double-quotish context.</p>

</dd>
<dt id="Missing-comma-after-first-argument-to-%s-function"><a class="permalink" href="perldiag.html#Missing-comma-after-first-argument-to-%25s-function">#</a><a id="Missing6"></a><a id="Missing-comma-after-first-argument-to-s-function"></a>Missing comma after first argument to %s function</dt>
<dd>

<p>(F) While certain functions allow you to specify a filehandle or an &quot;indirect object&quot; before the argument list, this ain&#39;t one of them.</p>

</dd>
<dt id="Missing-command-in-piped-open"><a class="permalink" href="perldiag.html#Missing-command-in-piped-open">#</a><a id="Missing7"></a>Missing command in piped open</dt>
<dd>

<p>(W pipe) You used the <code>open(FH, &quot;| command&quot;)</code> or <code>open(FH, &quot;command |&quot;)</code> construction, but the command was missing or blank.</p>

</dd>
<dt id="Missing-control-char-name-in-\c"><a class="permalink" href="perldiag.html#Missing-control-char-name-in-%5Cc">#</a><a id="Missing8"></a><a id="Missing-control-char-name-in-c"></a>Missing control char name in \c</dt>
<dd>

<p>(F) A double-quoted string ended with &quot;\c&quot;, without the required control character name.</p>

</dd>
<dt id="Missing-&#39;]&#39;-in-prototype-for-%s-:-%s"><a class="permalink" href="perldiag.html#Missing-&#39;%5D&#39;-in-prototype-for-%25s-:-%25s">#</a><a id="Missing9"></a><a id="Missing-in-prototype-for-s-:-s"></a>Missing &#39;]&#39; in prototype for %s : %s</dt>
<dd>

<p>(W illegalproto) A grouping was started with <code>[</code> but never closed with <code>]</code>.</p>

</dd>
<dt id="Missing-name-in-&quot;%s-sub&quot;"><a class="permalink" href="perldiag.html#Missing-name-in-%22%25s-sub%22">#</a><a id="Missing10"></a><a id="Missing-name-in-s-sub"></a>Missing name in &quot;%s sub&quot;</dt>
<dd>

<p>(F) The syntax for lexically scoped subroutines requires that they have a name with which they can be found.</p>

</dd>
<dt id="Missing-$-on-loop-variable"><a class="permalink" href="perldiag.html#Missing-$-on-loop-variable">#</a><a id="Missing11"></a><a id="Missing-on-loop-variable"></a>Missing $ on loop variable</dt>
<dd>

<p>(F) Apparently you&#39;ve been programming in <b>csh</b> too much. Variables are always mentioned with the $ in Perl, unlike in the shells, where it can vary from one line to the next.</p>

</dd>
<dt id="(Missing-operator-before-%s?)"><a class="permalink" href="perldiag.html#(Missing-operator-before-%25s?)">#</a><a id="Missing-operator-before-s"></a>(Missing operator before %s?)</dt>
<dd>

<p>(S syntax) This is an educated guess made in conjunction with the message &quot;%s found where operator expected&quot;. Often the missing operator is a comma.</p>

</dd>
<dt id="Missing-or-undefined-argument-to-%s"><a class="permalink" href="perldiag.html#Missing-or-undefined-argument-to-%25s">#</a><a id="Missing12"></a><a id="Missing-or-undefined-argument-to-s"></a>Missing or undefined argument to %s</dt>
<dd>

<p>(F) You tried to call require or do with no argument or with an undefined value as an argument. Require expects either a package name or a file-specification as an argument; do expects a filename. See <a href="perlfunc.html#require-EXPR">&quot;require EXPR&quot; in perlfunc</a> and <a href="perlfunc.html#do-EXPR">&quot;do EXPR&quot; in perlfunc</a>.</p>

</dd>
<dt id="Missing-right-brace-on-\%c{}-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Missing-right-brace-on-%5C%25c%7B%7D-in-regex;-marked-by-in-m/%25s/">#</a><a id="Missing-right-brace-on-\%c{}-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Missing13"></a><a id="Missing-right-brace-on-c-in-regex-marked-by----HERE-in-m-s"></a>Missing right brace on \%c{} in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) Missing right brace in <code>\x{...}</code>, <code>\p{...}</code>, <code>\P{...}</code>, or <code>\N{...}</code>.</p>

</dd>
<dt id="Missing-right-brace-on-\N{}"><a class="permalink" href="perldiag.html#Missing-right-brace-on-%5CN%7B%7D">#</a><a id="Missing14"></a><a id="Missing-right-brace-on-N"></a>Missing right brace on \N{}</dt>
<dd>

</dd>
<dt id="Missing-right-brace-on-\N{}-or-unescaped-left-brace-after-\N"><a class="permalink" href="perldiag.html#Missing-right-brace-on-%5CN%7B%7D-or-unescaped-left-brace-after-%5CN">#</a><a id="Missing15"></a><a id="Missing-right-brace-on-N-or-unescaped-left-brace-after-N"></a>Missing right brace on \N{} or unescaped left brace after \N</dt>
<dd>

<p>(F) <code>\N</code> has two meanings.</p>

<p>The traditional one has it followed by a name enclosed in braces, meaning the character (or sequence of characters) given by that name. Thus <code>\N{ASTERISK}</code> is another way of writing <code>*</code>, valid in both double-quoted strings and regular expression patterns. In patterns, it doesn&#39;t have the meaning an unescaped <code>*</code> does.</p>

<p>Starting in Perl 5.12.0, <code>\N</code> also can have an additional meaning (only) in patterns, namely to match a non-newline character. (This is short for <code>[^\n]</code>, and like <code>.</code> but is not affected by the <code>/s</code> regex modifier.)</p>

<p>This can lead to some ambiguities. When <code>\N</code> is not followed immediately by a left brace, Perl assumes the <code>[^\n]</code> meaning. Also, if the braces form a valid quantifier such as <code>\N{3}</code> or <code>\N{5,}</code>, Perl assumes that this means to match the given quantity of non-newlines (in these examples, 3; and 5 or more, respectively). In all other case, where there is a <code>\N{</code> and a matching <code>}</code>, Perl assumes that a character name is desired.</p>

<p>However, if there is no matching <code>}</code>, Perl doesn&#39;t know if it was mistakenly omitted, or if <code>[^\n]{</code> was desired, and raises this error. If you meant the former, add the right brace; if you meant the latter, escape the brace with a backslash, like so: <code>\N\{</code></p>

</dd>
<dt id="Missing-right-curly-or-square-bracket"><a class="permalink" href="perldiag.html#Missing-right-curly-or-square-bracket">#</a><a id="Missing16"></a>Missing right curly or square bracket</dt>
<dd>

<p>(F) The lexer counted more opening curly or square brackets than closing ones. As a general rule, you&#39;ll find it&#39;s missing near the place you were last editing.</p>

</dd>
<dt id="(Missing-semicolon-on-previous-line?)"><a class="permalink" href="perldiag.html#(Missing-semicolon-on-previous-line?)">#</a><a id="Missing-semicolon-on-previous-line"></a>(Missing semicolon on previous line?)</dt>
<dd>

<p>(S syntax) This is an educated guess made in conjunction with the message &quot;%s found where operator expected&quot;. Don&#39;t automatically put a semicolon on the previous line just because you saw this message.</p>

</dd>
<dt id="Modification-of-a-read-only-value-attempted"><a class="permalink" href="perldiag.html#Modification-of-a-read-only-value-attempted">#</a><a id="Modification"></a>Modification of a read-only value attempted</dt>
<dd>

<p>(F) You tried, directly or indirectly, to change the value of a constant. You didn&#39;t, of course, try &quot;2 = 1&quot;, because the compiler catches that. But an easy way to do the same thing is:</p>

<pre><code>sub mod { $_[0] = 1 }
mod(2);</code></pre>

<p>Another way is to assign to a substr() that&#39;s off the end of the string.</p>

<p>Yet another way is to assign to a <code>foreach</code> loop <i>VAR</i> when <i>VAR</i> is aliased to a constant in the look <i>LIST</i>:</p>

<pre><code>$x = 1;
foreach my $n ($x, 2) {
    $n *= 2; # modifies the $x, but fails on attempt to
}            # modify the 2</code></pre>

<p><a href="./PerlIO::scalar.html">PerlIO::scalar</a> will also produce this message as a warning if you attempt to open a read-only scalar for writing.</p>

</dd>
<dt id="Modification-of-non-creatable-array-value-attempted,-%s"><a class="permalink" href="perldiag.html#Modification-of-non-creatable-array-value-attempted,-%25s">#</a><a id="Modification1"></a><a id="Modification-of-non-creatable-array-value-attempted-s"></a>Modification of non-creatable array value attempted, %s</dt>
<dd>

<p>(F) You tried to make an array value spring into existence, and the subscript was probably negative, even counting from end of the array backwards.</p>

</dd>
<dt id="Modification-of-non-creatable-hash-value-attempted,-%s"><a class="permalink" href="perldiag.html#Modification-of-non-creatable-hash-value-attempted,-%25s">#</a><a id="Modification2"></a><a id="Modification-of-non-creatable-hash-value-attempted-s"></a>Modification of non-creatable hash value attempted, %s</dt>
<dd>

<p>(P) You tried to make a hash value spring into existence, and it couldn&#39;t be created for some peculiar reason.</p>

</dd>
<dt id="Module-name-must-be-constant"><a class="permalink" href="perldiag.html#Module-name-must-be-constant">#</a><a id="Module"></a>Module name must be constant</dt>
<dd>

<p>(F) Only a bare module name is allowed as the first argument to a &quot;use&quot;.</p>

</dd>
<dt id="Module-name-required-with-%c-option"><a class="permalink" href="perldiag.html#Module-name-required-with-%25c-option">#</a><a id="Module1"></a><a id="Module-name-required-with---c-option"></a>Module name required with -%c option</dt>
<dd>

<p>(F) The <code>-M</code> or <code>-m</code> options say that Perl should load some module, but you omitted the name of the module. Consult <a href="perlrun.html#-m%5B-%5Dmodule">perlrun</a> for full details about <code>-M</code> and <code>-m</code>.</p>

</dd>
<dt id="More-than-one-argument-to-&#39;%s&#39;-open"><a class="permalink" href="perldiag.html#More-than-one-argument-to-&#39;%25s&#39;-open">#</a><a id="More"></a><a id="More-than-one-argument-to-s-open"></a>More than one argument to &#39;%s&#39; open</dt>
<dd>

<p>(F) The <code>open</code> function has been asked to open multiple files. This can happen if you are trying to open a pipe to a command that takes a list of arguments, but have forgotten to specify a piped open mode. See <a href="perlfunc.html#open">&quot;open&quot; in perlfunc</a> for details.</p>

</dd>
<dt id="mprotect-for-COW-string-%p-%u-failed-with-%d"><a class="permalink" href="perldiag.html#mprotect-for-COW-string-%25p-%25u-failed-with-%25d">#</a><a id="mprotect"></a><a id="mprotect-for-COW-string-p-u-failed-with-d"></a>mprotect for COW string %p %u failed with %d</dt>
<dd>

<p>(S) You compiled perl with <b>-D</b>PERL_DEBUG_READONLY_COW (see <a href="perlguts.html#Copy-on-Write">&quot;Copy on Write&quot; in perlguts</a>), but a shared string buffer could not be made read-only.</p>

</dd>
<dt id="mprotect-for-%p-%u-failed-with-%d"><a class="permalink" href="perldiag.html#mprotect-for-%25p-%25u-failed-with-%25d">#</a><a id="mprotect1"></a><a id="mprotect-for-p-u-failed-with-d"></a>mprotect for %p %u failed with %d</dt>
<dd>

<p>(S) You compiled perl with <b>-D</b>PERL_DEBUG_READONLY_OPS (see <a href="perlhacktips.html">perlhacktips</a>), but an op tree could not be made read-only.</p>

</dd>
<dt id="mprotect-RW-for-COW-string-%p-%u-failed-with-%d"><a class="permalink" href="perldiag.html#mprotect-RW-for-COW-string-%25p-%25u-failed-with-%25d">#</a><a id="mprotect2"></a><a id="mprotect-RW-for-COW-string-p-u-failed-with-d"></a>mprotect RW for COW string %p %u failed with %d</dt>
<dd>

<p>(S) You compiled perl with <b>-D</b>PERL_DEBUG_READONLY_COW (see <a href="perlguts.html#Copy-on-Write">&quot;Copy on Write&quot; in perlguts</a>), but a read-only shared string buffer could not be made mutable.</p>

</dd>
<dt id="mprotect-RW-for-%p-%u-failed-with-%d"><a class="permalink" href="perldiag.html#mprotect-RW-for-%25p-%25u-failed-with-%25d">#</a><a id="mprotect3"></a><a id="mprotect-RW-for-p-u-failed-with-d"></a>mprotect RW for %p %u failed with %d</dt>
<dd>

<p>(S) You compiled perl with <b>-D</b>PERL_DEBUG_READONLY_OPS (see <a href="perlhacktips.html">perlhacktips</a>), but a read-only op tree could not be made mutable before freeing the ops.</p>

</dd>
<dt id="msg%s-not-implemented"><a class="permalink" href="perldiag.html#msg%25s-not-implemented">#</a><a id="msg"></a><a id="msg-s-not-implemented"></a>msg%s not implemented</dt>
<dd>

<p>(F) You don&#39;t have System V message IPC on your system.</p>

</dd>
<dt id="Multidimensional-hash-lookup-is-disabled"><a class="permalink" href="perldiag.html#Multidimensional-hash-lookup-is-disabled">#</a><a id="Multidimensional"></a>Multidimensional hash lookup is disabled</dt>
<dd>

<p>(F) You supplied a list of subscripts to a hash lookup under <code>no feature &quot;multidimensional&quot;;</code>, eg:</p>

<pre><code>$z = $foo{$x, $y};</code></pre>

<p>which by default acts like:</p>

<pre><code>$z = $foo{join($;, $x, $y)};</code></pre>

</dd>
<dt id="Multidimensional-syntax-%s-not-supported"><a class="permalink" href="perldiag.html#Multidimensional-syntax-%25s-not-supported">#</a><a id="Multidimensional1"></a><a id="Multidimensional-syntax-s-not-supported"></a>Multidimensional syntax %s not supported</dt>
<dd>

<p>(W syntax) Multidimensional arrays aren&#39;t written like <code>$foo[1,2,3]</code>. They&#39;re written like <code>$foo[1][2][3]</code>, as in C.</p>

</dd>
<dt id="Multiple-slurpy-parameters-not-allowed"><a class="permalink" href="perldiag.html#Multiple-slurpy-parameters-not-allowed">#</a><a id="Multiple"></a>Multiple slurpy parameters not allowed</dt>
<dd>

<p>(F) In subroutine signatures, a slurpy parameter (<code>@</code> or <code>%</code>) must be the last parameter, and there must not be more than one of them; for example:</p>

<pre><code>sub foo ($a, @b)    {} # legal
sub foo ($a, @b, %) {} # invalid</code></pre>

</dd>
<dt id="&#39;/&#39;-must-follow-a-numeric-type-in-unpack"><a class="permalink" href="perldiag.html#&#39;/&#39;-must-follow-a-numeric-type-in-unpack">#</a><a id="must-follow-a-numeric-type-in-unpack"></a>&#39;/&#39; must follow a numeric type in unpack</dt>
<dd>

<p>(F) You had an unpack template that contained a &#39;/&#39;, but this did not follow some unpack specification producing a numeric value. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="%s-must-not-be-a-named-sequence-in-transliteration-operator"><a class="permalink" href="perldiag.html#%25s-must-not-be-a-named-sequence-in-transliteration-operator">#</a><a id="s-must-not-be-a-named-sequence-in-transliteration-operator"></a>%s must not be a named sequence in transliteration operator</dt>
<dd>

<p>(F) Transliteration (<code>tr///</code> and <code>y///</code>) transliterates individual characters. But a named sequence by definition is more than an individual character, and hence doing this operation on it doesn&#39;t make sense.</p>

</dd>
<dt id="&quot;my-sub&quot;-not-yet-implemented"><a class="permalink" href="perldiag.html#%22my-sub%22-not-yet-implemented">#</a><a id="my-sub-not-yet-implemented"></a>&quot;my sub&quot; not yet implemented</dt>
<dd>

<p>(F) Lexically scoped subroutines are not yet implemented. Don&#39;t try that yet.</p>

</dd>
<dt id="&quot;my&quot;-subroutine-%s-can&#39;t-be-in-a-package"><a class="permalink" href="perldiag.html#%22my%22-subroutine-%25s-can&#39;t-be-in-a-package">#</a><a id="my-subroutine-s-cant-be-in-a-package"></a>&quot;my&quot; subroutine %s can&#39;t be in a package</dt>
<dd>

<p>(F) Lexically scoped subroutines aren&#39;t in a package, so it doesn&#39;t make sense to try to declare one with a package qualifier on the front.</p>

</dd>
<dt id="&quot;my-%s&quot;-used-in-sort-comparison"><a class="permalink" href="perldiag.html#%22my-%25s%22-used-in-sort-comparison">#</a><a id="my-s-used-in-sort-comparison"></a>&quot;my %s&quot; used in sort comparison</dt>
<dd>

<p>(W syntax) The package variables $a and $b are used for sort comparisons. You used $a or $b in as an operand to the <code>&lt;=&gt;</code> or <code>cmp</code> operator inside a sort comparison block, and the variable had earlier been declared as a lexical variable. Either qualify the sort variable with the package name, or rename the lexical variable.</p>

</dd>
<dt id="&quot;my&quot;-variable-%s-can&#39;t-be-in-a-package"><a class="permalink" href="perldiag.html#%22my%22-variable-%25s-can&#39;t-be-in-a-package">#</a><a id="my-variable-s-cant-be-in-a-package"></a>&quot;my&quot; variable %s can&#39;t be in a package</dt>
<dd>

<p>(F) Lexically scoped variables aren&#39;t in a package, so it doesn&#39;t make sense to try to declare one with a package qualifier on the front. Use local() if you want to localize a package variable.</p>

</dd>
<dt id="Name-&quot;%s::%s&quot;-used-only-once:-possible-typo"><a class="permalink" href="perldiag.html#Name-%22%25s::%25s%22-used-only-once:-possible-typo">#</a><a id="Name"></a><a id="Name-s::-s-used-only-once:-possible-typo"></a>Name &quot;%s::%s&quot; used only once: possible typo</dt>
<dd>

<p>(W once) Typographical errors often show up as unique variable names. If you had a good reason for having a unique name, then just mention it again somehow to suppress the message. The <code>our</code> declaration is also provided for this purpose.</p>

<p>NOTE: This warning detects package symbols that have been used only once. This means lexical variables will never trigger this warning. It also means that all of the package variables $c, @c, %c, as well as *c, &amp;c, sub c{}, c(), and c (the filehandle or format) are considered the same; if a program uses $c only once but also uses any of the others it will not trigger this warning. Symbols beginning with an underscore and symbols using special identifiers (q.v. <a href="perldata.html">perldata</a>) are exempt from this warning.</p>

</dd>
<dt id="Need-exactly-3-octal-digits-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Need-exactly-3-octal-digits-in-regex;-marked-by-in-m/%25s/">#</a><a id="Need-exactly-3-octal-digits-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Need"></a><a id="Need-exactly-3-octal-digits-in-regex-marked-by----HERE-in-m-s"></a>Need exactly 3 octal digits in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) Within <span style="white-space: nowrap;"><code>(?[ ])</code></span>, all constants interpreted as octal need to be exactly 3 digits long. This helps catch some ambiguities. If your constant is too short, add leading zeros, like</p>

<pre><code class="plaintext">(?[ [ \078 ] ])     # Syntax error!
(?[ [ \0078 ] ])    # Works
(?[ [ \007 8 ] ])   # Clearer</code></pre>

<p>The maximum number this construct can express is <code>\777</code>. If you need a larger one, you need to use <a href="perlrebackslash.html#Octal-escapes">\o{}</a> instead. If you meant two separate things, you need to separate them:</p>

<pre><code class="plaintext">(?[ [ \7776 ] ])        # Syntax error!
(?[ [ \o{7776} ] ])     # One meaning
(?[ [ \777 6 ] ])       # Another meaning
(?[ [ \777 \006 ] ])    # Still another</code></pre>

</dd>
<dt id="Negative-&#39;/&#39;-count-in-unpack"><a class="permalink" href="perldiag.html#Negative-&#39;/&#39;-count-in-unpack">#</a><a id="Negative"></a><a id="Negative-count-in-unpack"></a>Negative &#39;/&#39; count in unpack</dt>
<dd>

<p>(F) The length count obtained from a length/code unpack operation was negative. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="Negative-length"><a class="permalink" href="perldiag.html#Negative-length">#</a><a id="Negative1"></a>Negative length</dt>
<dd>

<p>(F) You tried to do a read/write/send/recv operation with a buffer length that is less than 0. This is difficult to imagine.</p>

</dd>
<dt id="Negative-offset-to-vec-in-lvalue-context"><a class="permalink" href="perldiag.html#Negative-offset-to-vec-in-lvalue-context">#</a><a id="Negative2"></a>Negative offset to vec in lvalue context</dt>
<dd>

<p>(F) When <code>vec</code> is called in an lvalue context, the second argument must be greater than or equal to zero.</p>

</dd>
<dt id="Negative-repeat-count-does-nothing"><a class="permalink" href="perldiag.html#Negative-repeat-count-does-nothing">#</a><a id="Negative3"></a>Negative repeat count does nothing</dt>
<dd>

<p>(W numeric) You tried to execute the <a href="perlop.html#Multiplicative-Operators"><code>x</code></a> repetition operator fewer than 0 times, which doesn&#39;t make sense.</p>

</dd>
<dt id="Nested-quantifiers-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Nested-quantifiers-in-regex;-marked-by-in-m/%25s/">#</a><a id="Nested-quantifiers-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Nested"></a><a id="Nested-quantifiers-in-regex-marked-by----HERE-in-m-s"></a>Nested quantifiers in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You can&#39;t quantify a quantifier without intervening parentheses. So things like ** or +* or ?* are illegal. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered.</p>

<p>Note that the minimal matching quantifiers, <code>*?</code>, <code>+?</code>, and <code>??</code> appear to be nested quantifiers, but aren&#39;t. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="%s-never-introduced"><a class="permalink" href="perldiag.html#%25s-never-introduced">#</a><a id="s-never-introduced"></a>%s never introduced</dt>
<dd>

<p>(S internal) The symbol in question was declared but somehow went out of scope before it could possibly have been used.</p>

</dd>
<dt id="next::method/next::can/maybe::next::method-cannot-find-enclosing-method"><a class="permalink" href="perldiag.html#next::method/next::can/maybe::next::method-cannot-find-enclosing-method">#</a><a id="next"></a><a id="next::method-next::can-maybe::next::method-cannot-find-enclosing-method"></a>next::method/next::can/maybe::next::method cannot find enclosing method</dt>
<dd>

<p>(F) <code>next::method</code> needs to be called within the context of a real method in a real package, and it could not find such a context. See <a href="mro.html">mro</a>.</p>

</dd>
<dt id="\N-in-a-character-class-must-be-a-named-character:-\N{...}-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#%5CN-in-a-character-class-must-be-a-named-character:-%5CN%7B...%7D-in-regex;-marked-by-in-m/%25s/">#</a><a id="\N-in-a-character-class-must-be-a-named-character:-\N{...}-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="N-in-a-character-class-must-be-a-named-character:-N-...-in-regex-marked-by----HERE-in-m-s"></a>\N in a character class must be a named character: \N{...} in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) The new (as of Perl 5.12) meaning of <code>\N</code> as <code>[^\n]</code> is not valid in a bracketed character class, for the same reason that <code>.</code> in a character class loses its specialness: it matches almost everything, which is probably not what you want.</p>

</dd>
<dt id="\N{}-here-is-restricted-to-one-character-in-regex;-marked-by-&lt;-HERE-in-m/%s/"><a class="permalink" href="perldiag.html#%5CN%7B%7D-here-is-restricted-to-one-character-in-regex;-marked-by-%3C-HERE-in-m/%25s/">#</a><a id="N-here-is-restricted-to-one-character-in-regex-marked-by----HERE-in-m-s"></a>\N{} here is restricted to one character in regex; marked by &lt;-- HERE in m/%s/</dt>
<dd>

<p>(F) Named Unicode character escapes (<code>\N{...}</code>) may return a multi-character sequence. Even though a character class is supposed to match just one character of input, perl will match the whole thing correctly, except under certain conditions. These currently are</p>

<dl>

<dt id="When-the-class-is-inverted-([^...])"><a class="permalink" href="perldiag.html#When-the-class-is-inverted-(%5B%5E...%5D)">#</a><a id="When"></a><a id="When-the-class-is-inverted"></a>When the class is inverted (<code>[^...]</code>)</dt>
<dd>

<p>The mathematically logical behavior for what matches when inverting is very different from what people expect, so we have decided to forbid it.</p>

</dd>
<dt id="The-escape-is-the-beginning-or-final-end-point-of-a-range"><a class="permalink" href="perldiag.html#The-escape-is-the-beginning-or-final-end-point-of-a-range">#</a><a id="The"></a>The escape is the beginning or final end point of a range</dt>
<dd>

<p>Similarly unclear is what should be generated when the <code>\N{...}</code> is used as one of the end points of the range, such as in</p>

<pre><code class="plaintext">[\x{41}-\N{ARABIC SEQUENCE YEH WITH HAMZA ABOVE WITH AE}]</code></pre>

<p>What is meant here is unclear, as the <code>\N{...}</code> escape is a sequence of code points, so this is made an error.</p>

</dd>
<dt id="In-a-regex-set"><a class="permalink" href="perldiag.html#In-a-regex-set">#</a><a id="In3"></a>In a regex set</dt>
<dd>

<p>The syntax <span style="white-space: nowrap;"><code>(?[ ])</code></span> in a regular expression yields a list of single code points, none can be a sequence.</p>

</dd>
</dl>

</dd>
<dt id="No-%s-allowed-while-running-setuid"><a class="permalink" href="perldiag.html#No-%25s-allowed-while-running-setuid">#</a><a id="No"></a><a id="No-s-allowed-while-running-setuid"></a>No %s allowed while running setuid</dt>
<dd>

<p>(F) Certain operations are deemed to be too insecure for a setuid or setgid script to even be allowed to attempt. Generally speaking there will be another way to do what you want that is, if not secure, at least securable. See <a href="perlsec.html">perlsec</a>.</p>

</dd>
<dt id="No-code-specified-for-%c"><a class="permalink" href="perldiag.html#No-code-specified-for-%25c">#</a><a id="No1"></a><a id="No-code-specified-for---c"></a>No code specified for -%c</dt>
<dd>

<p>(F) Perl&#39;s <b>-e</b> and <b>-E</b> command-line options require an argument. If you want to run an empty program, pass the empty string as a separate argument or run a program consisting of a single 0 or 1:</p>

<pre><code class="plaintext">perl -e &quot;&quot;
perl -e0
perl -e1</code></pre>

</dd>
<dt id="No-comma-allowed-after-%s"><a class="permalink" href="perldiag.html#No-comma-allowed-after-%25s">#</a><a id="No2"></a><a id="No-comma-allowed-after-s"></a>No comma allowed after %s</dt>
<dd>

<p>(F) A list operator that has a filehandle or &quot;indirect object&quot; is not allowed to have a comma between that and the following arguments. Otherwise it&#39;d be just another one of the arguments.</p>

<p>One possible cause for this is that you expected to have imported a constant to your name space with <b>use</b> or <b>import</b> while no such importing took place, it may for example be that your operating system does not support that particular constant. Hopefully you did use an explicit import list for the constants you expect to see; please see <a href="perlfunc.html#use">&quot;use&quot; in perlfunc</a> and <a href="perlfunc.html#import">&quot;import&quot; in perlfunc</a>. While an explicit import list would probably have caught this error earlier it naturally does not remedy the fact that your operating system still does not support that constant. Maybe you have a typo in the constants of the symbol import list of <b>use</b> or <b>import</b> or in the constant name at the line where this error was triggered?</p>

</dd>
<dt id="No-command-into-which-to-pipe-on-command-line"><a class="permalink" href="perldiag.html#No-command-into-which-to-pipe-on-command-line">#</a><a id="No3"></a>No command into which to pipe on command line</dt>
<dd>

<p>(F) An error peculiar to VMS. Perl handles its own command line redirection, and found a &#39;|&#39; at the end of the command line, so it doesn&#39;t know where you want to pipe the output from this command.</p>

</dd>
<dt id="No-DB::DB-routine-defined"><a class="permalink" href="perldiag.html#No-DB::DB-routine-defined">#</a><a id="No4"></a>No DB::DB routine defined</dt>
<dd>

<p>(F) The currently executing code was compiled with the <b>-d</b> switch, but for some reason the current debugger (e.g. <i>perl5db.pl</i> or a <code>Devel::</code> module) didn&#39;t define a routine to be called at the beginning of each statement.</p>

</dd>
<dt id="No-dbm-on-this-machine"><a class="permalink" href="perldiag.html#No-dbm-on-this-machine">#</a><a id="No5"></a>No dbm on this machine</dt>
<dd>

<p>(P) This is counted as an internal error, because every machine should supply dbm nowadays, because Perl comes with SDBM. See <a href="SDBM_File.html">SDBM_File</a>.</p>

</dd>
<dt id="No-DB::sub-routine-defined"><a class="permalink" href="perldiag.html#No-DB::sub-routine-defined">#</a><a id="No6"></a>No DB::sub routine defined</dt>
<dd>

<p>(F) The currently executing code was compiled with the <b>-d</b> switch, but for some reason the current debugger (e.g. <i>perl5db.pl</i> or a <code>Devel::</code> module) didn&#39;t define a <code>DB::sub</code> routine to be called at the beginning of each ordinary subroutine call.</p>

</dd>
<dt id="No-digits-found-for-%s-literal"><a class="permalink" href="perldiag.html#No-digits-found-for-%25s-literal">#</a><a id="No7"></a><a id="No-digits-found-for-s-literal"></a>No digits found for %s literal</dt>
<dd>

<p>(F) No hexadecimal digits were found following <code>0x</code> or no binary digits were found following <code>0b</code>.</p>

</dd>
<dt id="No-directory-specified-for-I"><a class="permalink" href="perldiag.html#No-directory-specified-for-I">#</a><a id="No8"></a><a id="No-directory-specified-for--I"></a>No directory specified for -I</dt>
<dd>

<p>(F) The <b>-I</b> command-line switch requires a directory name as part of the <i>same</i> argument. Use <b>-Ilib</b>, for instance. <b>-I lib</b> won&#39;t work.</p>

</dd>
<dt id="No-error-file-after-2&gt;-or-2&gt;&gt;-on-command-line"><a class="permalink" href="perldiag.html#No-error-file-after-2%3E-or-2%3E%3E-on-command-line">#</a><a id="No9"></a><a id="No-error-file-after-2-or-2-on-command-line"></a>No error file after 2&gt; or 2&gt;&gt; on command line</dt>
<dd>

<p>(F) An error peculiar to VMS. Perl handles its own command line redirection, and found a &#39;2&gt;&#39; or a &#39;2&gt;&gt;&#39; on the command line, but can&#39;t find the name of the file to which to write data destined for stderr.</p>

</dd>
<dt id="No-group-ending-character-&#39;%c&#39;-found-in-template"><a class="permalink" href="perldiag.html#No-group-ending-character-&#39;%25c&#39;-found-in-template">#</a><a id="No10"></a><a id="No-group-ending-character-c-found-in-template"></a>No group ending character &#39;%c&#39; found in template</dt>
<dd>

<p>(F) A pack or unpack template has an opening &#39;(&#39; or &#39;[&#39; without its matching counterpart. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="No-input-file-after-&lt;-on-command-line"><a class="permalink" href="perldiag.html#No-input-file-after-%3C-on-command-line">#</a><a id="No11"></a><a id="No-input-file-after-on-command-line"></a>No input file after &lt; on command line</dt>
<dd>

<p>(F) An error peculiar to VMS. Perl handles its own command line redirection, and found a &#39;&lt;&#39; on the command line, but can&#39;t find the name of the file from which to read data for stdin.</p>

</dd>
<dt id="No-next::method-&#39;%s&#39;-found-for-%s"><a class="permalink" href="perldiag.html#No-next::method-&#39;%25s&#39;-found-for-%25s">#</a><a id="No12"></a><a id="No-next::method-s-found-for-s"></a>No next::method &#39;%s&#39; found for %s</dt>
<dd>

<p>(F) <code>next::method</code> found no further instances of this method name in the remaining packages of the MRO of this class. If you don&#39;t want it throwing an exception, use <code>maybe::next::method</code> or <code>next::can</code>. See <a href="mro.html">mro</a>.</p>

</dd>
<dt id="Non-finite-repeat-count-does-nothing"><a class="permalink" href="perldiag.html#Non-finite-repeat-count-does-nothing">#</a><a id="Non"></a>Non-finite repeat count does nothing</dt>
<dd>

<p>(W numeric) You tried to execute the <a href="perlop.html#Multiplicative-Operators"><code>x</code></a> repetition operator <code>Inf</code> (or <code>-Inf</code>) or <code>NaN</code> times, which doesn&#39;t make sense.</p>

</dd>
<dt id="Non-hex-character-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Non-hex-character-in-regex;-marked-by-in-m/%25s/">#</a><a id="Non-hex-character-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Non1"></a><a id="Non-hex-character-in-regex-marked-by----HERE-in-m-s"></a>Non-hex character in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) In a regular expression, there was a non-hexadecimal character where a hex one was expected, like</p>

<pre><code class="plaintext">(?[ [ \xDG ] ])
(?[ [ \x{DEKA} ] ])</code></pre>

</dd>
<dt id="Non-hex-character-&#39;%c&#39;-terminates-\x-early.-Resolved-as-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Non-hex-character-&#39;%25c&#39;-terminates-%5Cx-early.-Resolved-as-%22%25s%22">#</a><a id="Non2"></a><a id="Non-hex-character-c-terminates-x-early.-Resolved-as-s"></a>Non-hex character &#39;%c&#39; terminates \x early. Resolved as &quot;%s&quot;</dt>
<dd>

<p>(W digit) In parsing a hexadecimal numeric constant, a character was unexpectedly encountered that isn&#39;t hexadecimal. The resulting value is as indicated.</p>

<p>Note that, within braces, every character starting with the first non-hexadecimal up to the ending brace is ignored.</p>

</dd>
<dt id="Non-octal-character-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Non-octal-character-in-regex;-marked-by-in-m/%25s/">#</a><a id="Non-octal-character-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Non3"></a><a id="Non-octal-character-in-regex-marked-by----HERE-in-m-s"></a>Non-octal character in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) In a regular expression, there was a non-octal character where an octal one was expected, like</p>

<pre><code class="plaintext">(?[ [ \o{1278} ] ])</code></pre>

</dd>
<dt id="Non-octal-character-&#39;%c&#39;-terminates-\o-early.-Resolved-as-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Non-octal-character-&#39;%25c&#39;-terminates-%5Co-early.-Resolved-as-%22%25s%22">#</a><a id="Non4"></a><a id="Non-octal-character-c-terminates-o-early.-Resolved-as-s"></a>Non-octal character &#39;%c&#39; terminates \o early. Resolved as &quot;%s&quot;</dt>
<dd>

<p>(W digit) In parsing an octal numeric constant, a character was unexpectedly encountered that isn&#39;t octal. The resulting value is as indicated.</p>

<p>When not using <code>\o{...}</code>, you wrote something like <code>\08</code>, or <code>\179</code> in a double-quotish string. The resolution is as indicated, with all but the last digit treated as a single character, specified in octal. The last digit is the next character in the string. To tell Perl that this is indeed what you want, you can use the <code>\o{ }</code> syntax, or use exactly three digits to specify the octal for the character.</p>

<p>Note that, within braces, every character starting with the first non-octal up to the ending brace is ignored.</p>

</dd>
<dt id="&quot;no&quot;-not-allowed-in-expression"><a class="permalink" href="perldiag.html#%22no%22-not-allowed-in-expression">#</a><a id="no-not-allowed-in-expression"></a>&quot;no&quot; not allowed in expression</dt>
<dd>

<p>(F) The &quot;no&quot; keyword is recognized and executed at compile time, and returns no useful value. See <a href="perlmod.html">perlmod</a>.</p>

</dd>
<dt id="Non-string-passed-as-bitmask"><a class="permalink" href="perldiag.html#Non-string-passed-as-bitmask">#</a><a id="Non5"></a>Non-string passed as bitmask</dt>
<dd>

<p>(W misc) A number has been passed as a bitmask argument to select(). Use the vec() function to construct the file descriptor bitmasks for select. See <a href="perlfunc.html#select">&quot;select&quot; in perlfunc</a>.</p>

</dd>
<dt id="No-output-file-after-&gt;-on-command-line"><a class="permalink" href="perldiag.html#No-output-file-after-%3E-on-command-line">#</a><a id="No13"></a><a id="No-output-file-after-on-command-line"></a>No output file after &gt; on command line</dt>
<dd>

<p>(F) An error peculiar to VMS. Perl handles its own command line redirection, and found a lone &#39;&gt;&#39; at the end of the command line, so it doesn&#39;t know where you wanted to redirect stdout.</p>

</dd>
<dt id="No-output-file-after-&gt;-or-&gt;&gt;-on-command-line"><a class="permalink" href="perldiag.html#No-output-file-after-%3E-or-%3E%3E-on-command-line">#</a><a id="No14"></a><a id="No-output-file-after-or-on-command-line"></a>No output file after &gt; or &gt;&gt; on command line</dt>
<dd>

<p>(F) An error peculiar to VMS. Perl handles its own command line redirection, and found a &#39;&gt;&#39; or a &#39;&gt;&gt;&#39; on the command line, but can&#39;t find the name of the file to which to write data destined for stdout.</p>

</dd>
<dt id="No-package-name-allowed-for-subroutine-%s-in-&quot;our&quot;"><a class="permalink" href="perldiag.html#No-package-name-allowed-for-subroutine-%25s-in-%22our%22">#</a><a id="No15"></a><a id="No-package-name-allowed-for-subroutine-s-in-our"></a>No package name allowed for subroutine %s in &quot;our&quot;</dt>
<dd>

</dd>
<dt id="No-package-name-allowed-for-variable-%s-in-&quot;our&quot;"><a class="permalink" href="perldiag.html#No-package-name-allowed-for-variable-%25s-in-%22our%22">#</a><a id="No16"></a><a id="No-package-name-allowed-for-variable-s-in-our"></a>No package name allowed for variable %s in &quot;our&quot;</dt>
<dd>

<p>(F) Fully qualified subroutine and variable names are not allowed in &quot;our&quot; declarations, because that doesn&#39;t make much sense under existing rules. Such syntax is reserved for future extensions.</p>

</dd>
<dt id="No-Perl-script-found-in-input"><a class="permalink" href="perldiag.html#No-Perl-script-found-in-input">#</a><a id="No17"></a>No Perl script found in input</dt>
<dd>

<p>(F) You called <code>perl -x</code>, but no line was found in the file beginning with #! and containing the word &quot;perl&quot;.</p>

</dd>
<dt id="No-setregid-available"><a class="permalink" href="perldiag.html#No-setregid-available">#</a><a id="No18"></a>No setregid available</dt>
<dd>

<p>(F) Configure didn&#39;t find anything resembling the setregid() call for your system.</p>

</dd>
<dt id="No-setreuid-available"><a class="permalink" href="perldiag.html#No-setreuid-available">#</a><a id="No19"></a>No setreuid available</dt>
<dd>

<p>(F) Configure didn&#39;t find anything resembling the setreuid() call for your system.</p>

</dd>
<dt id="No-such-class-%s"><a class="permalink" href="perldiag.html#No-such-class-%25s">#</a><a id="No20"></a><a id="No-such-class-s"></a>No such class %s</dt>
<dd>

<p>(F) You provided a class qualifier in a &quot;my&quot;, &quot;our&quot; or &quot;state&quot; declaration, but this class doesn&#39;t exist at this point in your program.</p>

</dd>
<dt id="No-such-class-field-&quot;%s&quot;-in-variable-%s-of-type-%s"><a class="permalink" href="perldiag.html#No-such-class-field-%22%25s%22-in-variable-%25s-of-type-%25s">#</a><a id="No21"></a><a id="No-such-class-field-s-in-variable-s-of-type-s"></a>No such class field &quot;%s&quot; in variable %s of type %s</dt>
<dd>

<p>(F) You tried to access a key from a hash through the indicated typed variable but that key is not allowed by the package of the same type. The indicated package has restricted the set of allowed keys using the <a href="fields.html">fields</a> pragma.</p>

</dd>
<dt id="No-such-hook:-%s"><a class="permalink" href="perldiag.html#No-such-hook:-%25s">#</a><a id="No22"></a><a id="No-such-hook:-s"></a>No such hook: %s</dt>
<dd>

<p>(F) You specified a signal hook that was not recognized by Perl. Currently, Perl accepts <code>__DIE__</code> and <code>__WARN__</code> as valid signal hooks.</p>

</dd>
<dt id="No-such-pipe-open"><a class="permalink" href="perldiag.html#No-such-pipe-open">#</a><a id="No23"></a>No such pipe open</dt>
<dd>

<p>(P) An error peculiar to VMS. The internal routine my_pclose() tried to close a pipe which hadn&#39;t been opened. This should have been caught earlier as an attempt to close an unopened filehandle.</p>

</dd>
<dt id="No-such-signal:-SIG%s"><a class="permalink" href="perldiag.html#No-such-signal:-SIG%25s">#</a><a id="No24"></a><a id="No-such-signal:-SIG-s"></a>No such signal: SIG%s</dt>
<dd>

<p>(W signal) You specified a signal name as a subscript to %SIG that was not recognized. Say <code>kill -l</code> in your shell to see the valid signal names on your system.</p>

</dd>
<dt id="No-Unicode-property-value-wildcard-matches:"><a class="permalink" href="perldiag.html#No-Unicode-property-value-wildcard-matches:">#</a><a id="No25"></a><a id="No-Unicode-property-value-wildcard-matches"></a>No Unicode property value wildcard matches:</dt>
<dd>

<p>(W regexp) You specified a wildcard for a Unicode property value, but there is no property value in the current Unicode release that matches it. Check your spelling.</p>

</dd>
<dt id="Not-a-CODE-reference"><a class="permalink" href="perldiag.html#Not-a-CODE-reference">#</a><a id="Not"></a>Not a CODE reference</dt>
<dd>

<p>(F) Perl was trying to evaluate a reference to a code value (that is, a subroutine), but found a reference to something else instead. You can use the ref() function to find out what kind of ref it really was. See also <a href="perlref.html">perlref</a>.</p>

</dd>
<dt id="Not-a-GLOB-reference"><a class="permalink" href="perldiag.html#Not-a-GLOB-reference">#</a><a id="Not1"></a>Not a GLOB reference</dt>
<dd>

<p>(F) Perl was trying to evaluate a reference to a &quot;typeglob&quot; (that is, a symbol table entry that looks like <code>*foo</code>), but found a reference to something else instead. You can use the ref() function to find out what kind of ref it really was. See <a href="perlref.html">perlref</a>.</p>

</dd>
<dt id="Not-a-HASH-reference"><a class="permalink" href="perldiag.html#Not-a-HASH-reference">#</a><a id="Not2"></a>Not a HASH reference</dt>
<dd>

<p>(F) Perl was trying to evaluate a reference to a hash value, but found a reference to something else instead. You can use the ref() function to find out what kind of ref it really was. See <a href="perlref.html">perlref</a>.</p>

</dd>
<dt id="&#39;#&#39;-not-allowed-immediately-following-a-sigil-in-a-subroutine-signature"><a class="permalink" href="perldiag.html#&#39;%23&#39;-not-allowed-immediately-following-a-sigil-in-a-subroutine-signature">#</a><a id="not-allowed-immediately-following-a-sigil-in-a-subroutine-signature"></a>&#39;#&#39; not allowed immediately following a sigil in a subroutine signature</dt>
<dd>

<p>(F) In a subroutine signature definition, a comment following a sigil (<code>$</code>, <code>@</code> or <code>%</code>), needs to be separated by whitespace or a comma etc., in particular to avoid confusion with the <code>$#</code> variable. For example:</p>

<pre><code># bad
sub f ($# ignore first arg
       , $b) {}
# good
sub f ($, # ignore first arg
       $b) {}</code></pre>

</dd>
<dt id="Not-an-ARRAY-reference"><a class="permalink" href="perldiag.html#Not-an-ARRAY-reference">#</a><a id="Not3"></a>Not an ARRAY reference</dt>
<dd>

<p>(F) Perl was trying to evaluate a reference to an array value, but found a reference to something else instead. You can use the ref() function to find out what kind of ref it really was. See <a href="perlref.html">perlref</a>.</p>

</dd>
<dt id="Not-a-SCALAR-reference"><a class="permalink" href="perldiag.html#Not-a-SCALAR-reference">#</a><a id="Not4"></a>Not a SCALAR reference</dt>
<dd>

<p>(F) Perl was trying to evaluate a reference to a scalar value, but found a reference to something else instead. You can use the ref() function to find out what kind of ref it really was. See <a href="perlref.html">perlref</a>.</p>

</dd>
<dt id="Not-a-subroutine-reference"><a class="permalink" href="perldiag.html#Not-a-subroutine-reference">#</a><a id="Not5"></a>Not a subroutine reference</dt>
<dd>

<p>(F) Perl was trying to evaluate a reference to a code value (that is, a subroutine), but found a reference to something else instead. You can use the ref() function to find out what kind of ref it really was. See also <a href="perlref.html">perlref</a>.</p>

</dd>
<dt id="Not-a-subroutine-reference-in-overload-table"><a class="permalink" href="perldiag.html#Not-a-subroutine-reference-in-overload-table">#</a><a id="Not6"></a>Not a subroutine reference in overload table</dt>
<dd>

<p>(F) An attempt was made to specify an entry in an overloading table that doesn&#39;t somehow point to a valid subroutine. See <a href="overload.html">overload</a>.</p>

</dd>
<dt id="Not-enough-arguments-for-%s"><a class="permalink" href="perldiag.html#Not-enough-arguments-for-%25s">#</a><a id="Not7"></a><a id="Not-enough-arguments-for-s"></a>Not enough arguments for %s</dt>
<dd>

<p>(F) The function requires more arguments than you specified.</p>

</dd>
<dt id="Not-enough-format-arguments"><a class="permalink" href="perldiag.html#Not-enough-format-arguments">#</a><a id="Not8"></a>Not enough format arguments</dt>
<dd>

<p>(W syntax) A format specified more picture fields than the next line supplied. See <a href="perlform.html">perlform</a>.</p>

</dd>
<dt id="%s:-not-found"><a class="permalink" href="perldiag.html#%25s:-not-found">#</a><a id="s:-not-found"></a>%s: not found</dt>
<dd>

<p>(A) You&#39;ve accidentally run your script through the Bourne shell instead of Perl. Check the #! line, or manually feed your script into Perl yourself.</p>

</dd>
<dt id="no-UTC-offset-information;-assuming-local-time-is-UTC"><a class="permalink" href="perldiag.html#no-UTC-offset-information;-assuming-local-time-is-UTC">#</a><a id="no"></a><a id="no-UTC-offset-information-assuming-local-time-is-UTC"></a>no UTC offset information; assuming local time is UTC</dt>
<dd>

<p>(S) A warning peculiar to VMS. Perl was unable to find the local timezone offset, so it&#39;s assuming that local system time is equivalent to UTC. If it&#39;s not, define the logical name <i>SYS$TIMEZONE_DIFFERENTIAL</i> to translate to the number of seconds which need to be added to UTC to get local time.</p>

</dd>
<dt id="NULL-OP-IN-RUN"><a class="permalink" href="perldiag.html#NULL-OP-IN-RUN">#</a><a id="NULL"></a>NULL OP IN RUN</dt>
<dd>

<p>(S debugging) Some internal routine called run() with a null opcode pointer.</p>

</dd>
<dt id="Null-picture-in-formline"><a class="permalink" href="perldiag.html#Null-picture-in-formline">#</a><a id="Null"></a>Null picture in formline</dt>
<dd>

<p>(F) The first argument to formline must be a valid format picture specification. It was found to be empty, which probably means you supplied it an uninitialized value. See <a href="perlform.html">perlform</a>.</p>

</dd>
<dt id="Null-realloc"><a class="permalink" href="perldiag.html#Null-realloc">#</a><a id="Null1"></a>Null realloc</dt>
<dd>

<p>(P) An attempt was made to realloc NULL.</p>

</dd>
<dt id="NULL-regexp-argument"><a class="permalink" href="perldiag.html#NULL-regexp-argument">#</a><a id="NULL1"></a>NULL regexp argument</dt>
<dd>

<p>(P) The internal pattern matching routines blew it big time.</p>

</dd>
<dt id="NULL-regexp-parameter"><a class="permalink" href="perldiag.html#NULL-regexp-parameter">#</a><a id="NULL2"></a>NULL regexp parameter</dt>
<dd>

<p>(P) The internal pattern matching routines are out of their gourd.</p>

</dd>
<dt id="Number-too-long"><a class="permalink" href="perldiag.html#Number-too-long">#</a><a id="Number"></a>Number too long</dt>
<dd>

<p>(F) Perl limits the representation of decimal numbers in programs to about 250 characters. You&#39;ve exceeded that length. Future versions of Perl are likely to eliminate this arbitrary limitation. In the meantime, try using scientific notation (e.g. &quot;1e6&quot; instead of &quot;1_000_000&quot;).</p>

</dd>
<dt id="Number-with-no-digits"><a class="permalink" href="perldiag.html#Number-with-no-digits">#</a><a id="Number1"></a>Number with no digits</dt>
<dd>

<p>(F) Perl was looking for a number but found nothing that looked like a number. This happens, for example with <code>\o{}</code>, with no number between the braces.</p>

</dd>
<dt id="Numeric-format-result-too-large"><a class="permalink" href="perldiag.html#Numeric-format-result-too-large">#</a><a id="Numeric"></a>Numeric format result too large</dt>
<dd>

<p>(F) The length of the result of a numeric format supplied to sprintf() or printf() would have been too large for the underlying C function to report. This limit is typically 2GB.</p>

</dd>
<dt id="Numeric-variables-with-more-than-one-digit-may-not-start-with-&#39;0&#39;"><a class="permalink" href="perldiag.html#Numeric-variables-with-more-than-one-digit-may-not-start-with-&#39;0&#39;">#</a><a id="Numeric1"></a><a id="Numeric-variables-with-more-than-one-digit-may-not-start-with-0"></a>Numeric variables with more than one digit may not start with &#39;0&#39;</dt>
<dd>

<p>(F) The only numeric variable which is allowed to start with a 0 is <code>$0</code>, and you mentioned a variable that starts with 0 that has more than one digit. You probably want to remove the leading 0, or if the intent was to express a variable name in octal you should convert to decimal.</p>

</dd>
<dt id="Octal-number-&gt;-037777777777-non-portable"><a class="permalink" href="perldiag.html#Octal-number-%3E-037777777777-non-portable">#</a><a id="Octal"></a><a id="Octal-number-037777777777-non-portable"></a>Octal number &gt; 037777777777 non-portable</dt>
<dd>

<p>(W portable) The octal number you specified is larger than 2**32-1 (4294967295) and therefore non-portable between systems. See <a href="perlport.html">perlport</a> for more on portability concerns.</p>

</dd>
<dt id="Odd-name/value-argument-for-subroutine-&#39;%s&#39;"><a class="permalink" href="perldiag.html#Odd-name/value-argument-for-subroutine-&#39;%25s&#39;">#</a><a id="Odd"></a><a id="Odd-name-value-argument-for-subroutine-s"></a>Odd name/value argument for subroutine &#39;%s&#39;</dt>
<dd>

<p>(F) A subroutine using a slurpy hash parameter in its signature received an odd number of arguments to populate the hash. It requires the arguments to be paired, with the same number of keys as values. The caller of the subroutine is presumably at fault.</p>

<p>The message attempts to include the name of the called subroutine. If the subroutine has been aliased, the subroutine&#39;s original name will be shown, regardless of what name the caller used.</p>

</dd>
<dt id="Odd-number-of-arguments-for-overload::constant"><a class="permalink" href="perldiag.html#Odd-number-of-arguments-for-overload::constant">#</a><a id="Odd1"></a>Odd number of arguments for overload::constant</dt>
<dd>

<p>(W overload) The call to overload::constant contained an odd number of arguments. The arguments should come in pairs.</p>

</dd>
<dt id="Odd-number-of-elements-in-anonymous-hash"><a class="permalink" href="perldiag.html#Odd-number-of-elements-in-anonymous-hash">#</a><a id="Odd2"></a>Odd number of elements in anonymous hash</dt>
<dd>

<p>(W misc) You specified an odd number of elements to initialize a hash, which is odd, because hashes come in key/value pairs.</p>

</dd>
<dt id="Odd-number-of-elements-in-hash-assignment"><a class="permalink" href="perldiag.html#Odd-number-of-elements-in-hash-assignment">#</a><a id="Odd3"></a>Odd number of elements in hash assignment</dt>
<dd>

<p>(W misc) You specified an odd number of elements to initialize a hash, which is odd, because hashes come in key/value pairs.</p>

</dd>
<dt id="Offset-outside-string"><a class="permalink" href="perldiag.html#Offset-outside-string">#</a><a id="Offset"></a>Offset outside string</dt>
<dd>

<p>(F)(W layer) You tried to do a read/write/send/recv/seek operation with an offset pointing outside the buffer. This is difficult to imagine. The sole exceptions to this are that zero padding will take place when going past the end of the string when either <code>sysread()</code>ing a file, or when seeking past the end of a scalar opened for I/O (in anticipation of future reads and to imitate the behavior with real files).</p>

</dd>
<dt id="Old-package-separator-used-in-string"><a class="permalink" href="perldiag.html#Old-package-separator-used-in-string">#</a><a id="Old"></a>Old package separator used in string</dt>
<dd>

<p>(W syntax) You used the old package separator, &quot;&#39;&quot;, in a variable named inside a double-quoted string; e.g., <code>&quot;In $name&#39;s house&quot;</code>. This is equivalent to <code>&quot;In $name::s house&quot;</code>. If you meant the former, put a backslash before the apostrophe (<code>&quot;In $name\&#39;s house&quot;</code>).</p>

</dd>
<dt id="%s()-on-unopened-%s"><a class="permalink" href="perldiag.html#%25s()-on-unopened-%25s">#</a><a id="s-on-unopened-s"></a>%s() on unopened %s</dt>
<dd>

<p>(W unopened) An I/O operation was attempted on a filehandle that was never initialized. You need to do an open(), a sysopen(), or a socket() call, or call a constructor from the FileHandle package.</p>

</dd>
<dt id="-%s-on-unopened-filehandle-%s"><a class="permalink" href="perldiag.html#-%25s-on-unopened-filehandle-%25s">#</a><a id="s-on-unopened-filehandle-s"></a>-%s on unopened filehandle %s</dt>
<dd>

<p>(W unopened) You tried to invoke a file test operator on a filehandle that isn&#39;t open. Check your control flow. See also <a href="perlfunc.html#-X">&quot;-X&quot; in perlfunc</a>.</p>

</dd>
<dt id="oops:-oopsAV"><a class="permalink" href="perldiag.html#oops:-oopsAV">#</a><a id="oops"></a>oops: oopsAV</dt>
<dd>

<p>(S internal) An internal warning that the grammar is screwed up.</p>

</dd>
<dt id="oops:-oopsHV"><a class="permalink" href="perldiag.html#oops:-oopsHV">#</a><a id="oops1"></a>oops: oopsHV</dt>
<dd>

<p>(S internal) An internal warning that the grammar is screwed up.</p>

</dd>
<dt id="Operand-with-no-preceding-operator-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Operand-with-no-preceding-operator-in-regex;-marked-by-in-m/%25s/">#</a><a id="Operand-with-no-preceding-operator-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Operand"></a><a id="Operand-with-no-preceding-operator-in-regex-marked-by----HERE-in-m-s"></a>Operand with no preceding operator in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You wrote something like</p>

<pre><code class="plaintext">(?[ \p{Digit} \p{Thai} ])</code></pre>

<p>There are two operands, but no operator giving how you want to combine them.</p>

</dd>
<dt id="Operation-&quot;%s&quot;:-no-method-found,-%s"><a class="permalink" href="perldiag.html#Operation-%22%25s%22:-no-method-found,-%25s">#</a><a id="Operation"></a><a id="Operation-s:-no-method-found-s"></a>Operation &quot;%s&quot;: no method found, %s</dt>
<dd>

<p>(F) An attempt was made to perform an overloaded operation for which no handler was defined. While some handlers can be autogenerated in terms of other handlers, there is no default handler for any operation, unless the <code>fallback</code> overloading key is specified to be true. See <a href="overload.html">overload</a>.</p>

</dd>
<dt id="Operation-&quot;%s&quot;-returns-its-argument-for-non-Unicode-code-point-0x%X"><a class="permalink" href="perldiag.html#Operation-%22%25s%22-returns-its-argument-for-non-Unicode-code-point-0x%25X">#</a><a id="Operation1"></a><a id="Operation-s-returns-its-argument-for-non-Unicode-code-point-0x-X"></a>Operation &quot;%s&quot; returns its argument for non-Unicode code point 0x%X</dt>
<dd>

<p>(S non_unicode) You performed an operation requiring Unicode rules on a code point that is not in Unicode, so what it should do is not defined. Perl has chosen to have it do nothing, and warn you.</p>

<p>If the operation shown is &quot;ToFold&quot;, it means that case-insensitive matching in a regular expression was done on the code point.</p>

<p>If you know what you are doing you can turn off this warning by <code>no warnings &#39;non_unicode&#39;;</code>.</p>

</dd>
<dt id="Operation-&quot;%s&quot;-returns-its-argument-for-UTF-16-surrogate-U+%X"><a class="permalink" href="perldiag.html#Operation-%22%25s%22-returns-its-argument-for-UTF-16-surrogate-U+%25X">#</a><a id="Operation2"></a><a id="Operation-s-returns-its-argument-for-UTF-16-surrogate-U-X"></a>Operation &quot;%s&quot; returns its argument for UTF-16 surrogate U+%X</dt>
<dd>

<p>(S surrogate) You performed an operation requiring Unicode rules on a Unicode surrogate. Unicode frowns upon the use of surrogates for anything but storing strings in UTF-16, but rules are (reluctantly) defined for the surrogates, and they are to do nothing for this operation. Because the use of surrogates can be dangerous, Perl warns.</p>

<p>If the operation shown is &quot;ToFold&quot;, it means that case-insensitive matching in a regular expression was done on the code point.</p>

<p>If you know what you are doing you can turn off this warning by <code>no warnings &#39;surrogate&#39;;</code>.</p>

</dd>
<dt id="Operator-or-semicolon-missing-before-%s"><a class="permalink" href="perldiag.html#Operator-or-semicolon-missing-before-%25s">#</a><a id="Operator"></a><a id="Operator-or-semicolon-missing-before-s"></a>Operator or semicolon missing before %s</dt>
<dd>

<p>(S ambiguous) You used a variable or subroutine call where the parser was expecting an operator. The parser has assumed you really meant to use an operator, but this is highly likely to be incorrect. For example, if you say &quot;*foo *foo&quot; it will be interpreted as if you said &quot;*foo * &#39;foo&#39;&quot;.</p>

</dd>
<dt id="Optional-parameter-lacks-default-expression"><a class="permalink" href="perldiag.html#Optional-parameter-lacks-default-expression">#</a><a id="Optional"></a>Optional parameter lacks default expression</dt>
<dd>

<p>(F) In a subroutine signature, you wrote something like &quot;$a =&quot;, making a named optional parameter without a default value. A nameless optional parameter is permitted to have no default value, but a named one must have a specific default. You probably want &quot;$a = undef&quot;.</p>

</dd>
<dt id="&quot;our&quot;-variable-%s-redeclared"><a class="permalink" href="perldiag.html#%22our%22-variable-%25s-redeclared">#</a><a id="our-variable-s-redeclared"></a>&quot;our&quot; variable %s redeclared</dt>
<dd>

<p>(W shadow) You seem to have already declared the same global once before in the current lexical scope.</p>

</dd>
<dt id="Out-of-memory!"><a class="permalink" href="perldiag.html#Out-of-memory!">#</a><a id="Out"></a><a id="Out-of-memory"></a>Out of memory!</dt>
<dd>

<p>(X) The malloc() function returned 0, indicating there was insufficient remaining memory (or virtual memory) to satisfy the request. Perl has no option but to exit immediately.</p>

<p>At least in Unix you may be able to get past this by increasing your process datasize limits: in csh/tcsh use <code>limit</code> and <code>limit datasize n</code> (where <code>n</code> is the number of kilobytes) to check the current limits and change them, and in ksh/bash/zsh use <code>ulimit -a</code> and <code>ulimit -d n</code>, respectively.</p>

</dd>
<dt id="Out-of-memory-during-%s-extend"><a class="permalink" href="perldiag.html#Out-of-memory-during-%25s-extend">#</a><a id="Out1"></a><a id="Out-of-memory-during-s-extend"></a>Out of memory during %s extend</dt>
<dd>

<p>(X) An attempt was made to extend an array, a list, or a string beyond the largest possible memory allocation.</p>

</dd>
<dt id="Out-of-memory-during-&quot;large&quot;-request-for-%s"><a class="permalink" href="perldiag.html#Out-of-memory-during-%22large%22-request-for-%25s">#</a><a id="Out2"></a><a id="Out-of-memory-during-large-request-for-s"></a>Out of memory during &quot;large&quot; request for %s</dt>
<dd>

<p>(F) The malloc() function returned 0, indicating there was insufficient remaining memory (or virtual memory) to satisfy the request. However, the request was judged large enough (compile-time default is 64K), so a possibility to shut down by trapping this error is granted.</p>

</dd>
<dt id="Out-of-memory-during-request-for-%s"><a class="permalink" href="perldiag.html#Out-of-memory-during-request-for-%25s">#</a><a id="Out3"></a><a id="Out-of-memory-during-request-for-s"></a>Out of memory during request for %s</dt>
<dd>

<p>(X)(F) The malloc() function returned 0, indicating there was insufficient remaining memory (or virtual memory) to satisfy the request.</p>

<p>The request was judged to be small, so the possibility to trap it depends on the way perl was compiled. By default it is not trappable. However, if compiled for this, Perl may use the contents of <code>$^M</code> as an emergency pool after die()ing with this message. In this case the error is trappable <i>once</i>, and the error message will include the line and file where the failed request happened.</p>

</dd>
<dt id="Out-of-memory-during-ridiculously-large-request"><a class="permalink" href="perldiag.html#Out-of-memory-during-ridiculously-large-request">#</a><a id="Out4"></a>Out of memory during ridiculously large request</dt>
<dd>

<p>(F) You can&#39;t allocate more than 2^31+&quot;small amount&quot; bytes. This error is most likely to be caused by a typo in the Perl program. e.g., <code>$arr[time]</code> instead of <code>$arr[$time]</code>.</p>

</dd>
<dt id="Out-of-memory-for-yacc-stack"><a class="permalink" href="perldiag.html#Out-of-memory-for-yacc-stack">#</a><a id="Out5"></a>Out of memory for yacc stack</dt>
<dd>

<p>(F) The yacc parser wanted to grow its stack so it could continue parsing, but realloc() wouldn&#39;t give it more memory, virtual or otherwise.</p>

</dd>
<dt id="&#39;.&#39;-outside-of-string-in-pack"><a class="permalink" href="perldiag.html#&#39;.&#39;-outside-of-string-in-pack">#</a><a id="outside-of-string-in-pack"></a>&#39;.&#39; outside of string in pack</dt>
<dd>

<p>(F) The argument to a &#39;.&#39; in your template tried to move the working position to before the start of the packed string being built.</p>

</dd>
<dt id="&#39;@&#39;-outside-of-string-in-unpack"><a class="permalink" href="perldiag.html#&#39;@&#39;-outside-of-string-in-unpack">#</a><a id="outside-of-string-in-unpack"></a>&#39;@&#39; outside of string in unpack</dt>
<dd>

<p>(F) You had a template that specified an absolute position outside the string being unpacked. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="&#39;@&#39;-outside-of-string-with-malformed-UTF-8-in-unpack"><a class="permalink" href="perldiag.html#&#39;@&#39;-outside-of-string-with-malformed-UTF-8-in-unpack">#</a><a id="outside-of-string-with-malformed-UTF-8-in-unpack"></a>&#39;@&#39; outside of string with malformed UTF-8 in unpack</dt>
<dd>

<p>(F) You had a template that specified an absolute position outside the string being unpacked. The string being unpacked was also invalid UTF-8. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="overload-arg-&#39;%s&#39;-is-invalid"><a class="permalink" href="perldiag.html#overload-arg-&#39;%25s&#39;-is-invalid">#</a><a id="overload"></a><a id="overload-arg-s-is-invalid"></a>overload arg &#39;%s&#39; is invalid</dt>
<dd>

<p>(W overload) The <a href="overload.html">overload</a> pragma was passed an argument it did not recognize. Did you mistype an operator?</p>

</dd>
<dt id="Overloaded-dereference-did-not-return-a-reference"><a class="permalink" href="perldiag.html#Overloaded-dereference-did-not-return-a-reference">#</a><a id="Overloaded"></a>Overloaded dereference did not return a reference</dt>
<dd>

<p>(F) An object with an overloaded dereference operator was dereferenced, but the overloaded operation did not return a reference. See <a href="overload.html">overload</a>.</p>

</dd>
<dt id="Overloaded-qr-did-not-return-a-REGEXP"><a class="permalink" href="perldiag.html#Overloaded-qr-did-not-return-a-REGEXP">#</a><a id="Overloaded1"></a>Overloaded qr did not return a REGEXP</dt>
<dd>

<p>(F) An object with a <code>qr</code> overload was used as part of a match, but the overloaded operation didn&#39;t return a compiled regexp. See <a href="overload.html">overload</a>.</p>

</dd>
<dt id="%s-package-attribute-may-clash-with-future-reserved-word:-%s"><a class="permalink" href="perldiag.html#%25s-package-attribute-may-clash-with-future-reserved-word:-%25s">#</a><a id="s-package-attribute-may-clash-with-future-reserved-word:-s"></a>%s package attribute may clash with future reserved word: %s</dt>
<dd>

<p>(W reserved) A lowercase attribute name was used that had a package-specific handler. That name might have a meaning to Perl itself some day, even though it doesn&#39;t yet. Perhaps you should use a mixed-case attribute name, instead. See <a href="attributes.html">attributes</a>.</p>

</dd>
<dt id="pack/unpack-repeat-count-overflow"><a class="permalink" href="perldiag.html#pack/unpack-repeat-count-overflow">#</a><a id="pack"></a><a id="pack-unpack-repeat-count-overflow"></a>pack/unpack repeat count overflow</dt>
<dd>

<p>(F) You can&#39;t specify a repeat count so large that it overflows your signed integers. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="page-overflow"><a class="permalink" href="perldiag.html#page-overflow">#</a><a id="page"></a>page overflow</dt>
<dd>

<p>(W io) A single call to write() produced more lines than can fit on a page. See <a href="perlform.html">perlform</a>.</p>

</dd>
<dt id="panic:-%s"><a class="permalink" href="perldiag.html#panic:-%25s">#</a><a id="panic"></a><a id="panic:-s"></a>panic: %s</dt>
<dd>

<p>(P) An internal error.</p>

</dd>
<dt id="panic:-attempt-to-call-%s-in-%s"><a class="permalink" href="perldiag.html#panic:-attempt-to-call-%25s-in-%25s">#</a><a id="panic1"></a><a id="panic:-attempt-to-call-s-in-s"></a>panic: attempt to call %s in %s</dt>
<dd>

<p>(P) One of the file test operators entered a code branch that calls an ACL related-function, but that function is not available on this platform. Earlier checks mean that it should not be possible to enter this branch on this platform.</p>

</dd>
<dt id="panic:-child-pseudo-process-was-never-scheduled"><a class="permalink" href="perldiag.html#panic:-child-pseudo-process-was-never-scheduled">#</a><a id="panic2"></a>panic: child pseudo-process was never scheduled</dt>
<dd>

<p>(P) A child pseudo-process in the ithreads implementation on Windows was not scheduled within the time period allowed and therefore was not able to initialize properly.</p>

</dd>
<dt id="panic:-ck_grep,-type=%u"><a class="permalink" href="perldiag.html#panic:-ck_grep,-type=%25u">#</a><a id="panic3"></a><a id="panic:-ck_grep-type-u"></a>panic: ck_grep, type=%u</dt>
<dd>

<p>(P) Failed an internal consistency check trying to compile a grep.</p>

</dd>
<dt id="panic:-corrupt-saved-stack-index-%ld"><a class="permalink" href="perldiag.html#panic:-corrupt-saved-stack-index-%25ld">#</a><a id="panic4"></a><a id="panic:-corrupt-saved-stack-index-ld"></a>panic: corrupt saved stack index %ld</dt>
<dd>

<p>(P) The savestack was requested to restore more localized values than there are in the savestack.</p>

</dd>
<dt id="panic:-del_backref"><a class="permalink" href="perldiag.html#panic:-del_backref">#</a><a id="panic5"></a>panic: del_backref</dt>
<dd>

<p>(P) Failed an internal consistency check while trying to reset a weak reference.</p>

</dd>
<dt id="panic:-do_subst"><a class="permalink" href="perldiag.html#panic:-do_subst">#</a><a id="panic6"></a>panic: do_subst</dt>
<dd>

<p>(P) The internal pp_subst() routine was called with invalid operational data.</p>

</dd>
<dt id="panic:-do_trans_%s"><a class="permalink" href="perldiag.html#panic:-do_trans_%25s">#</a><a id="panic7"></a><a id="panic:-do_trans_-s"></a>panic: do_trans_%s</dt>
<dd>

<p>(P) The internal do_trans routines were called with invalid operational data.</p>

</dd>
<dt id="panic:-fold_constants-JMPENV_PUSH-returned-%d"><a class="permalink" href="perldiag.html#panic:-fold_constants-JMPENV_PUSH-returned-%25d">#</a><a id="panic8"></a><a id="panic:-fold_constants-JMPENV_PUSH-returned-d"></a>panic: fold_constants JMPENV_PUSH returned %d</dt>
<dd>

<p>(P) While attempting folding constants an exception other than an <code>eval</code> failure was caught.</p>

</dd>
<dt id="panic:-frexp:-%f"><a class="permalink" href="perldiag.html#panic:-frexp:-%25f">#</a><a id="panic9"></a><a id="panic:-frexp:-f"></a>panic: frexp: %f</dt>
<dd>

<p>(P) The library function frexp() failed, making printf(&quot;%f&quot;) impossible.</p>

</dd>
<dt id="panic:-goto,-type=%u,-ix=%ld"><a class="permalink" href="perldiag.html#panic:-goto,-type=%25u,-ix=%25ld">#</a><a id="panic10"></a><a id="panic:-goto-type-u-ix-ld"></a>panic: goto, type=%u, ix=%ld</dt>
<dd>

<p>(P) We popped the context stack to a context with the specified label, and then discovered it wasn&#39;t a context we know how to do a goto in.</p>

</dd>
<dt id="panic:-gp_free-failed-to-free-glob-pointer"><a class="permalink" href="perldiag.html#panic:-gp_free-failed-to-free-glob-pointer">#</a><a id="panic11"></a>panic: gp_free failed to free glob pointer</dt>
<dd>

<p>(P) The internal routine used to clear a typeglob&#39;s entries tried repeatedly, but each time something re-created entries in the glob. Most likely the glob contains an object with a reference back to the glob and a destructor that adds a new object to the glob.</p>

</dd>
<dt id="panic:-INTERPCASEMOD,-%s"><a class="permalink" href="perldiag.html#panic:-INTERPCASEMOD,-%25s">#</a><a id="panic12"></a><a id="panic:-INTERPCASEMOD-s"></a>panic: INTERPCASEMOD, %s</dt>
<dd>

<p>(P) The lexer got into a bad state at a case modifier.</p>

</dd>
<dt id="panic:-INTERPCONCAT,-%s"><a class="permalink" href="perldiag.html#panic:-INTERPCONCAT,-%25s">#</a><a id="panic13"></a><a id="panic:-INTERPCONCAT-s"></a>panic: INTERPCONCAT, %s</dt>
<dd>

<p>(P) The lexer got into a bad state parsing a string with brackets.</p>

</dd>
<dt id="panic:-kid-popen-errno-read"><a class="permalink" href="perldiag.html#panic:-kid-popen-errno-read">#</a><a id="panic14"></a>panic: kid popen errno read</dt>
<dd>

<p>(F) A forked child returned an incomprehensible message about its errno.</p>

</dd>
<dt id="panic:-last,-type=%u"><a class="permalink" href="perldiag.html#panic:-last,-type=%25u">#</a><a id="panic15"></a><a id="panic:-last-type-u"></a>panic: last, type=%u</dt>
<dd>

<p>(P) We popped the context stack to a block context, and then discovered it wasn&#39;t a block context.</p>

</dd>
<dt id="panic:-leave_scope-clearsv"><a class="permalink" href="perldiag.html#panic:-leave_scope-clearsv">#</a><a id="panic16"></a>panic: leave_scope clearsv</dt>
<dd>

<p>(P) A writable lexical variable became read-only somehow within the scope.</p>

</dd>
<dt id="panic:-leave_scope-inconsistency-%u"><a class="permalink" href="perldiag.html#panic:-leave_scope-inconsistency-%25u">#</a><a id="panic17"></a><a id="panic:-leave_scope-inconsistency-u"></a>panic: leave_scope inconsistency %u</dt>
<dd>

<p>(P) The savestack probably got out of sync. At least, there was an invalid enum on the top of it.</p>

</dd>
<dt id="panic:-magic_killbackrefs"><a class="permalink" href="perldiag.html#panic:-magic_killbackrefs">#</a><a id="panic18"></a>panic: magic_killbackrefs</dt>
<dd>

<p>(P) Failed an internal consistency check while trying to reset all weak references to an object.</p>

</dd>
<dt id="panic:-malloc,-%s"><a class="permalink" href="perldiag.html#panic:-malloc,-%25s">#</a><a id="panic19"></a><a id="panic:-malloc-s"></a>panic: malloc, %s</dt>
<dd>

<p>(P) Something requested a negative number of bytes of malloc.</p>

</dd>
<dt id="panic:-memory-wrap"><a class="permalink" href="perldiag.html#panic:-memory-wrap">#</a><a id="panic20"></a>panic: memory wrap</dt>
<dd>

<p>(P) Something tried to allocate either more memory than possible or a negative amount.</p>

</dd>
<dt id="panic:-pad_alloc,-%p!=%p"><a class="permalink" href="perldiag.html#panic:-pad_alloc,-%25p!=%25p">#</a><a id="panic21"></a><a id="panic:-pad_alloc-p-p"></a>panic: pad_alloc, %p!=%p</dt>
<dd>

<p>(P) The compiler got confused about which scratch pad it was allocating and freeing temporaries and lexicals from.</p>

</dd>
<dt id="panic:-pad_free-curpad,-%p!=%p"><a class="permalink" href="perldiag.html#panic:-pad_free-curpad,-%25p!=%25p">#</a><a id="panic22"></a><a id="panic:-pad_free-curpad-p-p"></a>panic: pad_free curpad, %p!=%p</dt>
<dd>

<p>(P) The compiler got confused about which scratch pad it was allocating and freeing temporaries and lexicals from.</p>

</dd>
<dt id="panic:-pad_free-po"><a class="permalink" href="perldiag.html#panic:-pad_free-po">#</a><a id="panic23"></a>panic: pad_free po</dt>
<dd>

<p>(P) A zero scratch pad offset was detected internally. An attempt was made to free a target that had not been allocated to begin with.</p>

</dd>
<dt id="panic:-pad_reset-curpad,-%p!=%p"><a class="permalink" href="perldiag.html#panic:-pad_reset-curpad,-%25p!=%25p">#</a><a id="panic24"></a><a id="panic:-pad_reset-curpad-p-p"></a>panic: pad_reset curpad, %p!=%p</dt>
<dd>

<p>(P) The compiler got confused about which scratch pad it was allocating and freeing temporaries and lexicals from.</p>

</dd>
<dt id="panic:-pad_sv-po"><a class="permalink" href="perldiag.html#panic:-pad_sv-po">#</a><a id="panic25"></a>panic: pad_sv po</dt>
<dd>

<p>(P) A zero scratch pad offset was detected internally. Most likely an operator needed a target but that target had not been allocated for whatever reason.</p>

</dd>
<dt id="panic:-pad_swipe-curpad,-%p!=%p"><a class="permalink" href="perldiag.html#panic:-pad_swipe-curpad,-%25p!=%25p">#</a><a id="panic26"></a><a id="panic:-pad_swipe-curpad-p-p"></a>panic: pad_swipe curpad, %p!=%p</dt>
<dd>

<p>(P) The compiler got confused about which scratch pad it was allocating and freeing temporaries and lexicals from.</p>

</dd>
<dt id="panic:-pad_swipe-po"><a class="permalink" href="perldiag.html#panic:-pad_swipe-po">#</a><a id="panic27"></a>panic: pad_swipe po</dt>
<dd>

<p>(P) An invalid scratch pad offset was detected internally.</p>

</dd>
<dt id="panic:-pp_iter,-type=%u"><a class="permalink" href="perldiag.html#panic:-pp_iter,-type=%25u">#</a><a id="panic28"></a><a id="panic:-pp_iter-type-u"></a>panic: pp_iter, type=%u</dt>
<dd>

<p>(P) The foreach iterator got called in a non-loop context frame.</p>

</dd>
<dt id="panic:-pp_match%s"><a class="permalink" href="perldiag.html#panic:-pp_match%25s">#</a><a id="panic29"></a><a id="panic:-pp_match-s"></a>panic: pp_match%s</dt>
<dd>

<p>(P) The internal pp_match() routine was called with invalid operational data.</p>

</dd>
<dt id="panic:-realloc,-%s"><a class="permalink" href="perldiag.html#panic:-realloc,-%25s">#</a><a id="panic30"></a><a id="panic:-realloc-s"></a>panic: realloc, %s</dt>
<dd>

<p>(P) Something requested a negative number of bytes of realloc.</p>

</dd>
<dt id="panic:-reference-miscount-on-nsv-in-sv_replace()-(%d-!=-1)"><a class="permalink" href="perldiag.html#panic:-reference-miscount-on-nsv-in-sv_replace()-(%25d-!=-1)">#</a><a id="panic31"></a><a id="panic:-reference-miscount-on-nsv-in-sv_replace-d-1"></a>panic: reference miscount on nsv in sv_replace() (%d != 1)</dt>
<dd>

<p>(P) The internal sv_replace() function was handed a new SV with a reference count other than 1.</p>

</dd>
<dt id="panic:-restartop-in-%s"><a class="permalink" href="perldiag.html#panic:-restartop-in-%25s">#</a><a id="panic32"></a><a id="panic:-restartop-in-s"></a>panic: restartop in %s</dt>
<dd>

<p>(P) Some internal routine requested a goto (or something like it), and didn&#39;t supply the destination.</p>

</dd>
<dt id="panic:-return,-type=%u"><a class="permalink" href="perldiag.html#panic:-return,-type=%25u">#</a><a id="panic33"></a><a id="panic:-return-type-u"></a>panic: return, type=%u</dt>
<dd>

<p>(P) We popped the context stack to a subroutine or eval context, and then discovered it wasn&#39;t a subroutine or eval context.</p>

</dd>
<dt id="panic:-scan_num,-%s"><a class="permalink" href="perldiag.html#panic:-scan_num,-%25s">#</a><a id="panic34"></a><a id="panic:-scan_num-s"></a>panic: scan_num, %s</dt>
<dd>

<p>(P) scan_num() got called on something that wasn&#39;t a number.</p>

</dd>
<dt id="panic:-Sequence-(?{...}):-no-code-block-found-in-regex-m/%s/"><a class="permalink" href="perldiag.html#panic:-Sequence-(?%7B...%7D):-no-code-block-found-in-regex-m/%25s/">#</a><a id="panic35"></a><a id="panic:-Sequence-...-:-no-code-block-found-in-regex-m-s"></a>panic: Sequence (?{...}): no code block found in regex m/%s/</dt>
<dd>

<p>(P) While compiling a pattern that has embedded (?{}) or (??{}) code blocks, perl couldn&#39;t locate the code block that should have already been seen and compiled by perl before control passed to the regex compiler.</p>

</dd>
<dt id="panic:-strxfrm()-gets-absurd-a-=&gt;-%u,-ab-=&gt;-%u"><a class="permalink" href="perldiag.html#panic:-strxfrm()-gets-absurd-a-=%3E-%25u,-ab-=%3E-%25u">#</a><a id="panic36"></a><a id="panic:-strxfrm-gets-absurd---a-u-ab-u"></a>panic: strxfrm() gets absurd - a =&gt; %u, ab =&gt; %u</dt>
<dd>

<p>(P) The interpreter&#39;s sanity check of the C function strxfrm() failed. In your current locale the returned transformation of the string &quot;ab&quot; is shorter than that of the string &quot;a&quot;, which makes no sense.</p>

</dd>
<dt id="panic:-sv_chop-%s"><a class="permalink" href="perldiag.html#panic:-sv_chop-%25s">#</a><a id="panic37"></a><a id="panic:-sv_chop-s"></a>panic: sv_chop %s</dt>
<dd>

<p>(P) The sv_chop() routine was passed a position that is not within the scalar&#39;s string buffer.</p>

</dd>
<dt id="panic:-sv_insert,-midend=%p,-bigend=%p"><a class="permalink" href="perldiag.html#panic:-sv_insert,-midend=%25p,-bigend=%25p">#</a><a id="panic38"></a><a id="panic:-sv_insert-midend-p-bigend-p"></a>panic: sv_insert, midend=%p, bigend=%p</dt>
<dd>

<p>(P) The sv_insert() routine was told to remove more string than there was string.</p>

</dd>
<dt id="panic:-top_env"><a class="permalink" href="perldiag.html#panic:-top_env">#</a><a id="panic39"></a>panic: top_env</dt>
<dd>

<p>(P) The compiler attempted to do a goto, or something weird like that.</p>

</dd>
<dt id="panic:-unimplemented-op-%s-(#%d)-called"><a class="permalink" href="perldiag.html#panic:-unimplemented-op-%25s-(%23%25d)-called">#</a><a id="panic40"></a><a id="panic:-unimplemented-op-s-d-called"></a>panic: unimplemented op %s (#%d) called</dt>
<dd>

<p>(P) The compiler is screwed up and attempted to use an op that isn&#39;t permitted at run time.</p>

</dd>
<dt id="panic:-unknown-OA_*:-%x"><a class="permalink" href="perldiag.html#panic:-unknown-OA_*:-%25x">#</a><a id="panic41"></a><a id="panic:-unknown-OA_-:-x"></a>panic: unknown OA_*: %x</dt>
<dd>

<p>(P) The internal routine that handles arguments to <code>&amp;CORE::foo()</code> subroutine calls was unable to determine what type of arguments were expected.</p>

</dd>
<dt id="panic:-utf16_to_utf8:-odd-bytelen"><a class="permalink" href="perldiag.html#panic:-utf16_to_utf8:-odd-bytelen">#</a><a id="panic42"></a>panic: utf16_to_utf8: odd bytelen</dt>
<dd>

<p>(P) Something tried to call utf16_to_utf8 with an odd (as opposed to even) byte length.</p>

</dd>
<dt id="panic:-utf16_to_utf8_reversed:-odd-bytelen"><a class="permalink" href="perldiag.html#panic:-utf16_to_utf8_reversed:-odd-bytelen">#</a><a id="panic43"></a>panic: utf16_to_utf8_reversed: odd bytelen</dt>
<dd>

<p>(P) Something tried to call utf16_to_utf8_reversed with an odd (as opposed to even) byte length.</p>

</dd>
<dt id="panic:-yylex,-%s"><a class="permalink" href="perldiag.html#panic:-yylex,-%25s">#</a><a id="panic44"></a><a id="panic:-yylex-s"></a>panic: yylex, %s</dt>
<dd>

<p>(P) The lexer got into a bad state while processing a case modifier.</p>

</dd>
<dt id="Parentheses-missing-around-&quot;%s&quot;-list"><a class="permalink" href="perldiag.html#Parentheses-missing-around-%22%25s%22-list">#</a><a id="Parentheses"></a><a id="Parentheses-missing-around-s-list"></a>Parentheses missing around &quot;%s&quot; list</dt>
<dd>

<p>(W parenthesis) You said something like</p>

<pre><code>my $foo, $bar = @_;</code></pre>

<p>when you meant</p>

<pre><code>my ($foo, $bar) = @_;</code></pre>

<p>Remember that &quot;my&quot;, &quot;our&quot;, &quot;local&quot; and &quot;state&quot; bind tighter than comma.</p>

</dd>
<dt id="Parsing-code-internal-error-(%s)"><a class="permalink" href="perldiag.html#Parsing-code-internal-error-(%25s)">#</a><a id="Parsing"></a><a id="Parsing-code-internal-error-s"></a>Parsing code internal error (%s)</dt>
<dd>

<p>(F) Parsing code supplied by an extension violated the parser&#39;s API in a detectable way.</p>

</dd>
<dt id="Pattern-subroutine-nesting-without-pos-change-exceeded-limit-in-regex"><a class="permalink" href="perldiag.html#Pattern-subroutine-nesting-without-pos-change-exceeded-limit-in-regex">#</a><a id="Pattern"></a>Pattern subroutine nesting without pos change exceeded limit in regex</dt>
<dd>

<p>(F) You used a pattern that uses too many nested subpattern calls without consuming any text. Restructure the pattern so text is consumed before the nesting limit is exceeded.</p>

</dd>
<dt id="-p-destination:-%s"><a class="permalink" href="perldiag.html#-p-destination:-%25s">#</a><a id="p-destination:-s"></a><code>-p</code> destination: %s</dt>
<dd>

<p>(F) An error occurred during the implicit output invoked by the <code>-p</code> command-line switch. (This output goes to STDOUT unless you&#39;ve redirected it with select().)</p>

</dd>
<dt id="Perl-API-version-%s-of-%s-does-not-match-%s"><a class="permalink" href="perldiag.html#Perl-API-version-%25s-of-%25s-does-not-match-%25s">#</a><a id="Perl"></a><a id="Perl-API-version-s-of-s-does-not-match-s"></a>Perl API version %s of %s does not match %s</dt>
<dd>

<p>(F) The XS module in question was compiled against a different incompatible version of Perl than the one that has loaded the XS module.</p>

</dd>
<dt id="Perl-folding-rules-are-not-up-to-date-for-0x%X;-please-use-the-perlbug-utility-to-report;-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Perl-folding-rules-are-not-up-to-date-for-0x%25X;-please-use-the-perlbug-utility-to-report;-in-regex;-marked-by-in-m/%25s/">#</a><a id="Perl-folding-rules-are-not-up-to-date-for-0x%X;-please-use-the-perlbug-utility-to-report;-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Perl1"></a><a id="Perl-folding-rules-are-not-up-to-date-for-0x-X-please-use-the-perlbug-utility-to-report-in-regex-marked-by----HERE-in-m-s"></a>Perl folding rules are not up-to-date for 0x%X; please use the perlbug utility to report; in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(S regexp) You used a regular expression with case-insensitive matching, and there is a bug in Perl in which the built-in regular expression folding rules are not accurate. This may lead to incorrect results. Please report this as a bug to <a href="https://github.com/Perl/perl5/issues">https://github.com/Perl/perl5/issues</a>.</p>

</dd>
<dt id="PerlIO-layer-&#39;:win32&#39;-is-experimental"><a class="permalink" href="perldiag.html#PerlIO-layer-&#39;:win32&#39;-is-experimental">#</a><a id="PerlIO"></a><a id="PerlIO-layer-:win32-is-experimental"></a>PerlIO layer &#39;:win32&#39; is experimental</dt>
<dd>

<p>(S experimental::win32_perlio) The <code>:win32</code> PerlIO layer is experimental. If you want to take the risk of using this layer, simply disable this warning:</p>

<pre><code>no warnings &quot;experimental::win32_perlio&quot;;</code></pre>

</dd>
<dt id="Perl_my_%s()-not-available"><a class="permalink" href="perldiag.html#Perl_my_%25s()-not-available">#</a><a id="Perl_my_"></a><a id="Perl_my_-s-not-available"></a>Perl_my_%s() not available</dt>
<dd>

<p>(F) Your platform has very uncommon byte-order and integer size, so it was not possible to set up some or all fixed-width byte-order conversion functions. This is only a problem when you&#39;re using the &#39;&lt;&#39; or &#39;&gt;&#39; modifiers in (un)pack templates. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="Perl-%s-required-(did-you-mean-%s?)-this-is-only-%s,-stopped"><a class="permalink" href="perldiag.html#Perl-%25s-required-(did-you-mean-%25s?)-this-is-only-%25s,-stopped">#</a><a id="Perl2"></a><a id="Perl-s-required-did-you-mean-s---this-is-only-s-stopped"></a>Perl %s required (did you mean %s?)--this is only %s, stopped</dt>
<dd>

<p>(F) The code you are trying to run has asked for a newer version of Perl than you are running. Perhaps <code>use 5.10</code> was written instead of <code>use 5.010</code> or <code>use v5.10</code>. Without the leading <code>v</code>, the number is interpreted as a decimal, with every three digits after the decimal point representing a part of the version number. So 5.10 is equivalent to v5.100.</p>

</dd>
<dt id="Perl-%s-required-this-is-only-%s,-stopped"><a class="permalink" href="perldiag.html#Perl-%25s-required-this-is-only-%25s,-stopped">#</a><a id="Perl3"></a><a id="Perl-s-required--this-is-only-s-stopped"></a>Perl %s required--this is only %s, stopped</dt>
<dd>

<p>(F) The module in question uses features of a version of Perl more recent than the currently running version. How long has it been since you upgraded, anyway? See <a href="perlfunc.html#require">&quot;require&quot; in perlfunc</a>.</p>

</dd>
<dt id="PERL_SH_DIR-too-long"><a class="permalink" href="perldiag.html#PERL_SH_DIR-too-long">#</a><a id="PERL_SH_DIR"></a>PERL_SH_DIR too long</dt>
<dd>

<p>(F) An error peculiar to OS/2. PERL_SH_DIR is the directory to find the <code>sh</code>-shell in. See &quot;PERL_SH_DIR&quot; in <a href="perlos2.html">perlos2</a>.</p>

</dd>
<dt id="PERL_SIGNALS-illegal:-&quot;%s&quot;"><a class="permalink" href="perldiag.html#PERL_SIGNALS-illegal:-%22%25s%22">#</a><a id="PERL_SIGNALS"></a><a id="PERL_SIGNALS-illegal:-s"></a>PERL_SIGNALS illegal: &quot;%s&quot;</dt>
<dd>

<p>(X) See <a href="perlrun.html#PERL_SIGNALS">&quot;PERL_SIGNALS&quot; in perlrun</a> for legal values.</p>

</dd>
<dt id="Perls-since-%s-too-modern-this-is-%s,-stopped"><a class="permalink" href="perldiag.html#Perls-since-%25s-too-modern-this-is-%25s,-stopped">#</a><a id="Perls"></a><a id="Perls-since-s-too-modern--this-is-s-stopped"></a>Perls since %s too modern--this is %s, stopped</dt>
<dd>

<p>(F) The code you are trying to run claims it will not run on the version of Perl you are using because it is too new. Maybe the code needs to be updated, or maybe it is simply wrong and the version check should just be removed.</p>

</dd>
<dt id="perl:-warning:-Non-hex-character-in-&#39;$ENV{PERL_HASH_SEED}&#39;,-seed-only-partially-set"><a class="permalink" href="perldiag.html#perl:-warning:-Non-hex-character-in-&#39;$ENV%7BPERL_HASH_SEED%7D&#39;,-seed-only-partially-set">#</a><a id="perl"></a><a id="perl:-warning:-Non-hex-character-in-ENV-PERL_HASH_SEED-seed-only-partially-set"></a>perl: warning: Non hex character in &#39;$ENV{PERL_HASH_SEED}&#39;, seed only partially set</dt>
<dd>

<p>(S) PERL_HASH_SEED should match /^\s*(?:0x)?[0-9a-fA-F]+\s*\z/ but it contained a non hex character. This could mean you are not using the hash seed you think you are.</p>

</dd>
<dt id="perl:-warning:-Setting-locale-failed."><a class="permalink" href="perldiag.html#perl:-warning:-Setting-locale-failed.">#</a><a id="perl1"></a><a id="perl:-warning:-Setting-locale-failed"></a>perl: warning: Setting locale failed.</dt>
<dd>

<p>(S) The whole warning message will look something like:</p>

<pre><code class="plaintext">perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LC_ALL = &quot;En_US&quot;,
        LANG = (unset)
    are supported and installed on your system.
perl: warning: Falling back to the standard locale (&quot;C&quot;).</code></pre>

<p>Exactly what were the failed locale settings varies. In the above the settings were that the LC_ALL was &quot;En_US&quot; and the LANG had no value. This error means that Perl detected that you and/or your operating system supplier and/or system administrator have set up the so-called locale system but Perl could not use those settings. This was not dead serious, fortunately: there is a &quot;default locale&quot; called &quot;C&quot; that Perl can and will use, and the script will be run. Before you really fix the problem, however, you will get the same error message each time you run Perl. How to really fix the problem can be found in <a href="perllocale.html">perllocale</a> section <b>LOCALE PROBLEMS</b>.</p>

</dd>
<dt id="perl:-warning:-strange-setting-in-&#39;$ENV{PERL_PERTURB_KEYS}&#39;:-&#39;%s&#39;"><a class="permalink" href="perldiag.html#perl:-warning:-strange-setting-in-&#39;$ENV%7BPERL_PERTURB_KEYS%7D&#39;:-&#39;%25s&#39;">#</a><a id="perl2"></a><a id="perl:-warning:-strange-setting-in-ENV-PERL_PERTURB_KEYS-:-s"></a>perl: warning: strange setting in &#39;$ENV{PERL_PERTURB_KEYS}&#39;: &#39;%s&#39;</dt>
<dd>

<p>(S) Perl was run with the environment variable PERL_PERTURB_KEYS defined but containing an unexpected value. The legal values of this setting are as follows.</p>

<pre><code class="plaintext">Numeric | String        | Result
--------+---------------+-----------------------------------------
0       | NO            | Disables key traversal randomization
1       | RANDOM        | Enables full key traversal randomization
2       | DETERMINISTIC | Enables repeatable key traversal
        |               | randomization</code></pre>

<p>Both numeric and string values are accepted, but note that string values are case sensitive. The default for this setting is &quot;RANDOM&quot; or 1.</p>

</dd>
<dt id="pid-%x-not-a-child"><a class="permalink" href="perldiag.html#pid-%25x-not-a-child">#</a><a id="pid"></a><a id="pid-x-not-a-child"></a>pid %x not a child</dt>
<dd>

<p>(W exec) A warning peculiar to VMS. Waitpid() was asked to wait for a process which isn&#39;t a subprocess of the current process. While this is fine from VMS&#39; perspective, it&#39;s probably not what you intended.</p>

</dd>
<dt id="&#39;P&#39;-must-have-an-explicit-size-in-unpack"><a class="permalink" href="perldiag.html#&#39;P&#39;-must-have-an-explicit-size-in-unpack">#</a><a id="P-must-have-an-explicit-size-in-unpack"></a>&#39;P&#39; must have an explicit size in unpack</dt>
<dd>

<p>(F) The unpack format P must have an explicit size, not &quot;*&quot;.</p>

</dd>
<dt id="POSIX-class-[:%s:]-unknown-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#POSIX-class-%5B:%25s:%5D-unknown-in-regex;-marked-by-in-m/%25s/">#</a><a id="POSIX-class-[:%s:]-unknown-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="POSIX"></a><a id="POSIX-class-:-s:-unknown-in-regex-marked-by----HERE-in-m-s"></a>POSIX class [:%s:] unknown in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) The class in the character class [: :] syntax is unknown. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered. Note that the POSIX character classes do <b>not</b> have the <code>is</code> prefix the corresponding C interfaces have: in other words, it&#39;s <code>[[:print:]]</code>, not <code>isprint</code>. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="POSIX-getpgrp-can&#39;t-take-an-argument"><a class="permalink" href="perldiag.html#POSIX-getpgrp-can&#39;t-take-an-argument">#</a><a id="POSIX1"></a><a id="POSIX-getpgrp-cant-take-an-argument"></a>POSIX getpgrp can&#39;t take an argument</dt>
<dd>

<p>(F) Your system has POSIX getpgrp(), which takes no argument, unlike the BSD version, which takes a pid.</p>

</dd>
<dt id="POSIX-syntax-[%c-%c]-belongs-inside-character-classes%s-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#POSIX-syntax-%5B%25c-%25c%5D-belongs-inside-character-classes%25s-in-regex;-marked-by-in-m/%25s/">#</a><a id="POSIX-syntax-[%c-%c]-belongs-inside-character-classes%s-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="POSIX2"></a><a id="POSIX-syntax-c-c-belongs-inside-character-classes-s-in-regex-marked-by----HERE-in-m-s"></a>POSIX syntax [%c %c] belongs inside character classes%s in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp) Perl thinks that you intended to write a POSIX character class, but didn&#39;t use enough brackets. These POSIX class constructs [: :], [= =], and [. .] go <i>inside</i> character classes, the [] are part of the construct, for example: <code>qr/[012[:alpha:]345]/</code>. What the regular expression pattern compiled to is probably not what you were intending. For example, <code>qr/[:alpha:]/</code> compiles to a regular bracketed character class consisting of the four characters <code>&quot;:&quot;</code>, <code>&quot;a&quot;</code>, <code>&quot;l&quot;</code>, <code>&quot;h&quot;</code>, and <code>&quot;p&quot;</code>. To specify the POSIX class, it should have been written <code>qr/[[:alpha:]]/</code>.</p>

<p>Note that [= =] and [. .] are not currently implemented; they are simply placeholders for future extensions and will cause fatal errors. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered. See <a href="perlre.html">perlre</a>.</p>

<p>If the specification of the class was not completely valid, the message indicates that.</p>

</dd>
<dt id="POSIX-syntax-[.-.]-is-reserved-for-future-extensions-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#POSIX-syntax-%5B.-.%5D-is-reserved-for-future-extensions-in-regex;-marked-by-in-m/%25s/">#</a><a id="POSIX-syntax-[.-.]-is-reserved-for-future-extensions-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="POSIX3"></a><a id="POSIX-syntax-.-.-is-reserved-for-future-extensions-in-regex-marked-by----HERE-in-m-s"></a>POSIX syntax [. .] is reserved for future extensions in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) Within regular expression character classes ([]) the syntax beginning with &quot;[.&quot; and ending with &quot;.]&quot; is reserved for future extensions. If you need to represent those character sequences inside a regular expression character class, just quote the square brackets with the backslash: &quot;\[.&quot; and &quot;.\]&quot;. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="POSIX-syntax-[=-=]-is-reserved-for-future-extensions-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#POSIX-syntax-%5B=-=%5D-is-reserved-for-future-extensions-in-regex;-marked-by-in-m/%25s/">#</a><a id="POSIX-syntax-[=-=]-is-reserved-for-future-extensions-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="POSIX4"></a><a id="POSIX-syntax-is-reserved-for-future-extensions-in-regex-marked-by----HERE-in-m-s"></a>POSIX syntax [= =] is reserved for future extensions in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) Within regular expression character classes ([]) the syntax beginning with &quot;[=&quot; and ending with &quot;=]&quot; is reserved for future extensions. If you need to represent those character sequences inside a regular expression character class, just quote the square brackets with the backslash: &quot;\[=&quot; and &quot;=\]&quot;. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Possible-attempt-to-put-comments-in-qw()-list"><a class="permalink" href="perldiag.html#Possible-attempt-to-put-comments-in-qw()-list">#</a><a id="Possible"></a><a id="Possible-attempt-to-put-comments-in-qw-list"></a>Possible attempt to put comments in qw() list</dt>
<dd>

<p>(W qw) qw() lists contain items separated by whitespace; as with literal strings, comment characters are not ignored, but are instead treated as literal data. (You may have used different delimiters than the parentheses shown here; braces are also frequently used.)</p>

<p>You probably wrote something like this:</p>

<pre><code>    @list = qw(
	a # a comment
        b # another comment
    );</code></pre>

<p>when you should have written this:</p>

<pre><code>    @list = qw(
	a
        b
    );</code></pre>

<p>If you really want comments, build your list the old-fashioned way, with quotes and commas:</p>

<pre><code>@list = (
    &#39;a&#39;,    # a comment
    &#39;b&#39;,    # another comment
);</code></pre>

</dd>
<dt id="Possible-attempt-to-separate-words-with-commas"><a class="permalink" href="perldiag.html#Possible-attempt-to-separate-words-with-commas">#</a><a id="Possible1"></a>Possible attempt to separate words with commas</dt>
<dd>

<p>(W qw) qw() lists contain items separated by whitespace; therefore commas aren&#39;t needed to separate the items. (You may have used different delimiters than the parentheses shown here; braces are also frequently used.)</p>

<p>You probably wrote something like this:</p>

<pre><code>qw! a, b, c !;</code></pre>

<p>which puts literal commas into some of the list items. Write it without commas if you don&#39;t want them to appear in your data:</p>

<pre><code>qw! a b c !;</code></pre>

</dd>
<dt id="Possible-memory-corruption:-%s-overflowed-3rd-argument"><a class="permalink" href="perldiag.html#Possible-memory-corruption:-%25s-overflowed-3rd-argument">#</a><a id="Possible2"></a><a id="Possible-memory-corruption:-s-overflowed-3rd-argument"></a>Possible memory corruption: %s overflowed 3rd argument</dt>
<dd>

<p>(F) An ioctl() or fcntl() returned more than Perl was bargaining for. Perl guesses a reasonable buffer size, but puts a sentinel byte at the end of the buffer just in case. This sentinel byte got clobbered, and Perl assumes that memory is now corrupted. See <a href="perlfunc.html#ioctl">&quot;ioctl&quot; in perlfunc</a>.</p>

</dd>
<dt id="Possible-precedence-issue-with-control-flow-operator"><a class="permalink" href="perldiag.html#Possible-precedence-issue-with-control-flow-operator">#</a><a id="Possible3"></a>Possible precedence issue with control flow operator</dt>
<dd>

<p>(W syntax) There is a possible problem with the mixing of a control flow operator (e.g. <code>return</code>) and a low-precedence operator like <code>or</code>. Consider:</p>

<pre><code>sub { return $a or $b; }</code></pre>

<p>This is parsed as:</p>

<pre><code>sub { (return $a) or $b; }</code></pre>

<p>Which is effectively just:</p>

<pre><code>sub { return $a; }</code></pre>

<p>Either use parentheses or the high-precedence variant of the operator.</p>

<p>Note this may be also triggered for constructs like:</p>

<pre><code class="plaintext">sub { 1 if die; }</code></pre>

</dd>
<dt id="Possible-precedence-problem-on-bitwise-%s-operator"><a class="permalink" href="perldiag.html#Possible-precedence-problem-on-bitwise-%25s-operator">#</a><a id="Possible4"></a><a id="Possible-precedence-problem-on-bitwise-s-operator"></a>Possible precedence problem on bitwise %s operator</dt>
<dd>

<p>(W precedence) Your program uses a bitwise logical operator in conjunction with a numeric comparison operator, like this :</p>

<pre><code>if ($x &amp; $y == 0) { ... }</code></pre>

<p>This expression is actually equivalent to <code>$x &amp; ($y == 0)</code>, due to the higher precedence of <code>==</code>. This is probably not what you want. (If you really meant to write this, disable the warning, or, better, put the parentheses explicitly and write <code>$x &amp; ($y == 0)</code>).</p>

</dd>
<dt id="Possible-unintended-interpolation-of-$\-in-regex"><a class="permalink" href="perldiag.html#Possible-unintended-interpolation-of-$%5C-in-regex">#</a><a id="Possible5"></a><a id="Possible-unintended-interpolation-of-in-regex"></a>Possible unintended interpolation of $\ in regex</dt>
<dd>

<p>(W ambiguous) You said something like <code>m/$\/</code> in a regex. The regex <code>m/foo$\s+bar/m</code> translates to: match the word &#39;foo&#39;, the output record separator (see <a href="perlvar.html#%24%5C">&quot;$\&quot; in perlvar</a>) and the letter &#39;s&#39; (one time or more) followed by the word &#39;bar&#39;.</p>

<p>If this is what you intended then you can silence the warning by using <code>m/${\}/</code> (for example: <code>m/foo${\}s+bar/</code>).</p>

<p>If instead you intended to match the word &#39;foo&#39; at the end of the line followed by whitespace and the word &#39;bar&#39; on the next line then you can use <code>m/$(?)\/</code> (for example: <code>m/foo$(?)\s+bar/</code>).</p>

</dd>
<dt id="Possible-unintended-interpolation-of-%s-in-string"><a class="permalink" href="perldiag.html#Possible-unintended-interpolation-of-%25s-in-string">#</a><a id="Possible6"></a><a id="Possible-unintended-interpolation-of-s-in-string"></a>Possible unintended interpolation of %s in string</dt>
<dd>

<p>(W ambiguous) You said something like &#39;@foo&#39; in a double-quoted string but there was no array <code>@foo</code> in scope at the time. If you wanted a literal @foo, then write it as \@foo; otherwise find out what happened to the array you apparently lost track of.</p>

</dd>
<dt id="Precedence-problem:-open-%s-should-be-open(%s)"><a class="permalink" href="perldiag.html#Precedence-problem:-open-%25s-should-be-open(%25s)">#</a><a id="Precedence"></a><a id="Precedence-problem:-open-s-should-be-open-s"></a>Precedence problem: open %s should be open(%s)</dt>
<dd>

<p>(S precedence) The old irregular construct</p>

<pre><code>open FOO || die;</code></pre>

<p>is now misinterpreted as</p>

<pre><code>open(FOO || die);</code></pre>

<p>because of the strict regularization of Perl 5&#39;s grammar into unary and list operators. (The old open was a little of both.) You must put parentheses around the filehandle, or use the new &quot;or&quot; operator instead of &quot;||&quot;.</p>

</dd>
<dt id="Premature-end-of-script-headers"><a class="permalink" href="perldiag.html#Premature-end-of-script-headers">#</a><a id="Premature"></a>Premature end of script headers</dt>
<dd>

<p>See <a href="perldiag.html#500-Server-error">&quot;500 Server error&quot;</a>.</p>

</dd>
<dt id="printf()-on-closed-filehandle-%s"><a class="permalink" href="perldiag.html#printf()-on-closed-filehandle-%25s">#</a><a id="printf"></a><a id="printf-on-closed-filehandle-s"></a>printf() on closed filehandle %s</dt>
<dd>

<p>(W closed) The filehandle you&#39;re writing to got itself closed sometime before now. Check your control flow.</p>

</dd>
<dt id="print()-on-closed-filehandle-%s"><a class="permalink" href="perldiag.html#print()-on-closed-filehandle-%25s">#</a><a id="print"></a><a id="print-on-closed-filehandle-s"></a>print() on closed filehandle %s</dt>
<dd>

<p>(W closed) The filehandle you&#39;re printing on got itself closed sometime before now. Check your control flow.</p>

</dd>
<dt id="Process-terminated-by-SIG%s"><a class="permalink" href="perldiag.html#Process-terminated-by-SIG%25s">#</a><a id="Process"></a><a id="Process-terminated-by-SIG-s"></a>Process terminated by SIG%s</dt>
<dd>

<p>(W) This is a standard message issued by OS/2 applications, while *nix applications die in silence. It is considered a feature of the OS/2 port. One can easily disable this by appropriate sighandlers, see <a href="perlipc.html#Signals">&quot;Signals&quot; in perlipc</a>. See also &quot;Process terminated by SIGTERM/SIGINT&quot; in <a href="perlos2.html">perlos2</a>.</p>

</dd>
<dt id="Prototype-after-&#39;%c&#39;-for-%s-:-%s"><a class="permalink" href="perldiag.html#Prototype-after-&#39;%25c&#39;-for-%25s-:-%25s">#</a><a id="Prototype"></a><a id="Prototype-after-c-for-s-:-s"></a>Prototype after &#39;%c&#39; for %s : %s</dt>
<dd>

<p>(W illegalproto) A character follows % or @ in a prototype. This is useless, since % and @ gobble the rest of the subroutine arguments.</p>

</dd>
<dt id="Prototype-mismatch:-%s-vs-%s"><a class="permalink" href="perldiag.html#Prototype-mismatch:-%25s-vs-%25s">#</a><a id="Prototype1"></a><a id="Prototype-mismatch:-s-vs-s"></a>Prototype mismatch: %s vs %s</dt>
<dd>

<p>(S prototype) The subroutine being declared or defined had previously been declared or defined with a different function prototype.</p>

</dd>
<dt id="Prototype-not-terminated"><a class="permalink" href="perldiag.html#Prototype-not-terminated">#</a><a id="Prototype2"></a>Prototype not terminated</dt>
<dd>

<p>(F) You&#39;ve omitted the closing parenthesis in a function prototype definition.</p>

</dd>
<dt id="Prototype-&#39;%s&#39;-overridden-by-attribute-&#39;prototype(%s)&#39;-in-%s"><a class="permalink" href="perldiag.html#Prototype-&#39;%25s&#39;-overridden-by-attribute-&#39;prototype(%25s)&#39;-in-%25s">#</a><a id="Prototype3"></a><a id="Prototype-s-overridden-by-attribute-prototype-s-in-s"></a>Prototype &#39;%s&#39; overridden by attribute &#39;prototype(%s)&#39; in %s</dt>
<dd>

<p>(W prototype) A prototype was declared in both the parentheses after the sub name and via the prototype attribute. The prototype in parentheses is useless, since it will be replaced by the prototype from the attribute before it&#39;s ever used.</p>

</dd>
<dt id="Quantifier-follows-nothing-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Quantifier-follows-nothing-in-regex;-marked-by-in-m/%25s/">#</a><a id="Quantifier-follows-nothing-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Quantifier"></a><a id="Quantifier-follows-nothing-in-regex-marked-by----HERE-in-m-s"></a>Quantifier follows nothing in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You started a regular expression with a quantifier. Backslash it if you meant it literally. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Quantifier-in-{,}-bigger-than-%d-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Quantifier-in-%7B,%7D-bigger-than-%25d-in-regex;-marked-by-in-m/%25s/">#</a><a id="Quantifier-in-{,}-bigger-than-%d-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Quantifier1"></a><a id="Quantifier-in-bigger-than-d-in-regex-marked-by----HERE-in-m-s"></a>Quantifier in {,} bigger than %d in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) There is currently a limit to the size of the min and max values of the {min,max} construct. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Quantifier-{n,m}-with-n-&gt;-m-can&#39;t-match-in-regex"><a class="permalink" href="perldiag.html#Quantifier-%7Bn,m%7D-with-n-%3E-m-can&#39;t-match-in-regex">#</a><a id="Quantifier2"></a><a id="Quantifier-n-m-with-n-m-cant-match-in-regex"></a>Quantifier {n,m} with n &gt; m can&#39;t match in regex</dt>
<dd>

</dd>
<dt id="Quantifier-{n,m}-with-n-&gt;-m-can&#39;t-match-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Quantifier-%7Bn,m%7D-with-n-%3E-m-can&#39;t-match-in-regex;-marked-by-in-m/%25s/">#</a><a id="Quantifier-{n,m}-with-n-&gt;-m-can&#39;t-match-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Quantifier3"></a><a id="Quantifier-n-m-with-n-m-cant-match-in-regex-marked-by----HERE-in-m-s"></a>Quantifier {n,m} with n &gt; m can&#39;t match in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp) Minima should be less than or equal to maxima. If you really want your regexp to match something 0 times, just put {0}.</p>

</dd>
<dt id="Quantifier-unexpected-on-zero-length-expression-in-regex-m/%s/"><a class="permalink" href="perldiag.html#Quantifier-unexpected-on-zero-length-expression-in-regex-m/%25s/">#</a><a id="Quantifier4"></a><a id="Quantifier-unexpected-on-zero-length-expression-in-regex-m-s"></a>Quantifier unexpected on zero-length expression in regex m/%s/</dt>
<dd>

<p>(W regexp) You applied a regular expression quantifier in a place where it makes no sense, such as on a zero-width assertion. Try putting the quantifier inside the assertion instead. For example, the way to match &quot;abc&quot; provided that it is followed by three repetitions of &quot;xyz&quot; is <code>/abc(?=(?:xyz){3})/</code>, not <code>/abc(?=xyz){3}/</code>.</p>

</dd>
<dt id="Range-iterator-outside-integer-range"><a class="permalink" href="perldiag.html#Range-iterator-outside-integer-range">#</a><a id="Range"></a>Range iterator outside integer range</dt>
<dd>

<p>(F) One (or both) of the numeric arguments to the range operator &quot;..&quot; are outside the range which can be represented by integers internally. One possible workaround is to force Perl to use magical string increment by prepending &quot;0&quot; to your numbers.</p>

</dd>
<dt id="Ranges-of-ASCII-printables-should-be-some-subset-of-&quot;0-9&quot;,-&quot;A-Z&quot;,-or-&quot;a-z&quot;-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Ranges-of-ASCII-printables-should-be-some-subset-of-%220-9%22,-%22A-Z%22,-or-%22a-z%22-in-regex;-marked-by-in-m/%25s/">#</a><a id="Ranges-of-ASCII-printables-should-be-some-subset-of-&quot;0-9&quot;,-&quot;A-Z&quot;,-or-&quot;a-z&quot;-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Ranges"></a><a id="Ranges-of-ASCII-printables-should-be-some-subset-of-0-9-A-Z-or-a-z-in-regex-marked-by----HERE-in-m-s"></a>Ranges of ASCII printables should be some subset of &quot;0-9&quot;, &quot;A-Z&quot;, or &quot;a-z&quot; in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp) (only under <code><span style="white-space: nowrap;">use re &#39;strict&#39;</span></code> or within <code>(?[...])</code>)</p>

<p>Stricter rules help to find typos and other errors. Perhaps you didn&#39;t even intend a range here, if the <code>&quot;-&quot;</code> was meant to be some other character, or should have been escaped (like <code>&quot;\-&quot;</code>). If you did intend a range, the one that was used is not portable between ASCII and EBCDIC platforms, and doesn&#39;t have an obvious meaning to a casual reader.</p>

<pre><code class="plaintext">[3-7]    # OK; Obvious and portable
[d-g]    # OK; Obvious and portable
[A-Y]    # OK; Obvious and portable
[A-z]    # WRONG; Not portable; not clear what is meant
[a-Z]    # WRONG; Not portable; not clear what is meant
[%-.]    # WRONG; Not portable; not clear what is meant
[\x41-Z] # WRONG; Not portable; not obvious to non-geek</code></pre>

<p>(You can force portability by specifying a Unicode range, which means that the endpoints are specified by <a href="perlrecharclass.html#Character-Ranges"><code>\N{...}</code></a>, but the meaning may still not be obvious.) The stricter rules require that ranges that start or stop with an ASCII character that is not a control have all their endpoints be the literal character, and not some escape sequence (like <code>&quot;\x41&quot;</code>), and the ranges must be all digits, or all uppercase letters, or all lowercase letters.</p>

</dd>
<dt id="Ranges-of-digits-should-be-from-the-same-group-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Ranges-of-digits-should-be-from-the-same-group-in-regex;-marked-by-in-m/%25s/">#</a><a id="Ranges-of-digits-should-be-from-the-same-group-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Ranges1"></a><a id="Ranges-of-digits-should-be-from-the-same-group-in-regex-marked-by----HERE-in-m-s"></a>Ranges of digits should be from the same group in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp) (only under <code><span style="white-space: nowrap;">use re &#39;strict&#39;</span></code> or within <code>(?[...])</code>)</p>

<p>Stricter rules help to find typos and other errors. You included a range, and at least one of the end points is a decimal digit. Under the stricter rules, when this happens, both end points should be digits in the same group of 10 consecutive digits.</p>

</dd>
<dt id="readdir()-attempted-on-invalid-dirhandle-%s"><a class="permalink" href="perldiag.html#readdir()-attempted-on-invalid-dirhandle-%25s">#</a><a id="readdir"></a><a id="readdir-attempted-on-invalid-dirhandle-s"></a>readdir() attempted on invalid dirhandle %s</dt>
<dd>

<p>(W io) The dirhandle you&#39;re reading from is either closed or not really a dirhandle. Check your control flow.</p>

</dd>
<dt id="readline()-on-closed-filehandle-%s"><a class="permalink" href="perldiag.html#readline()-on-closed-filehandle-%25s">#</a><a id="readline"></a><a id="readline-on-closed-filehandle-s"></a>readline() on closed filehandle %s</dt>
<dd>

<p>(W closed) The filehandle you&#39;re reading from got itself closed sometime before now. Check your control flow.</p>

</dd>
<dt id="readline()-on-unopened-filehandle-%s"><a class="permalink" href="perldiag.html#readline()-on-unopened-filehandle-%25s">#</a><a id="readline1"></a><a id="readline-on-unopened-filehandle-s"></a>readline() on unopened filehandle %s</dt>
<dd>

<p>(W unopened) The filehandle you&#39;re reading from was never opened. Check your control flow.</p>

</dd>
<dt id="read()-on-closed-filehandle-%s"><a class="permalink" href="perldiag.html#read()-on-closed-filehandle-%25s">#</a><a id="read"></a><a id="read-on-closed-filehandle-s"></a>read() on closed filehandle %s</dt>
<dd>

<p>(W closed) You tried to read from a closed filehandle.</p>

</dd>
<dt id="read()-on-unopened-filehandle-%s"><a class="permalink" href="perldiag.html#read()-on-unopened-filehandle-%25s">#</a><a id="read1"></a><a id="read-on-unopened-filehandle-s"></a>read() on unopened filehandle %s</dt>
<dd>

<p>(W unopened) You tried to read from a filehandle that was never opened.</p>

</dd>
<dt id="Reallocation-too-large:-%x"><a class="permalink" href="perldiag.html#Reallocation-too-large:-%25x">#</a><a id="Reallocation"></a><a id="Reallocation-too-large:-x"></a>Reallocation too large: %x</dt>
<dd>

<p>(F) You can&#39;t allocate more than 64K on an MS-DOS machine.</p>

</dd>
<dt id="realloc()-of-freed-memory-ignored"><a class="permalink" href="perldiag.html#realloc()-of-freed-memory-ignored">#</a><a id="realloc"></a><a id="realloc-of-freed-memory-ignored"></a>realloc() of freed memory ignored</dt>
<dd>

<p>(S malloc) An internal routine called realloc() on something that had already been freed.</p>

</dd>
<dt id="Recompile-perl-with-DDEBUGGING-to-use-D-switch"><a class="permalink" href="perldiag.html#Recompile-perl-with-DDEBUGGING-to-use-D-switch">#</a><a id="Recompile"></a><a id="Recompile-perl-with--DDEBUGGING-to-use--D-switch"></a>Recompile perl with <b>-D</b>DEBUGGING to use <b>-D</b> switch</dt>
<dd>

<p>(S debugging) You can&#39;t use the <b>-D</b> option unless the code to produce the desired output is compiled into Perl, which entails some overhead, which is why it&#39;s currently left out of your copy.</p>

</dd>
<dt id="Recursive-call-to-Perl_load_module-in-PerlIO_find_layer"><a class="permalink" href="perldiag.html#Recursive-call-to-Perl_load_module-in-PerlIO_find_layer">#</a><a id="Recursive"></a>Recursive call to Perl_load_module in PerlIO_find_layer</dt>
<dd>

<p>(P) It is currently not permitted to load modules when creating a filehandle inside an %INC hook. This can happen with <code>open my $fh, &#39;&lt;&#39;, \$scalar</code>, which implicitly loads PerlIO::scalar. Try loading PerlIO::scalar explicitly first.</p>

</dd>
<dt id="Recursive-inheritance-detected-in-package-&#39;%s&#39;"><a class="permalink" href="perldiag.html#Recursive-inheritance-detected-in-package-&#39;%25s&#39;">#</a><a id="Recursive1"></a><a id="Recursive-inheritance-detected-in-package-s"></a>Recursive inheritance detected in package &#39;%s&#39;</dt>
<dd>

<p>(F) While calculating the method resolution order (MRO) of a package, Perl believes it found an infinite loop in the <code>@ISA</code> hierarchy. This is a crude check that bails out after 100 levels of <code>@ISA</code> depth.</p>

</dd>
<dt id="Redundant-argument-in-%s"><a class="permalink" href="perldiag.html#Redundant-argument-in-%25s">#</a><a id="Redundant"></a><a id="Redundant-argument-in-s"></a>Redundant argument in %s</dt>
<dd>

<p>(W redundant) You called a function with more arguments than other arguments you supplied indicated would be needed. Currently only emitted when a printf-type format required fewer arguments than were supplied, but might be used in the future for e.g. <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="refcnt_dec:-fd-%d%s"><a class="permalink" href="perldiag.html#refcnt_dec:-fd-%25d%25s">#</a><a id="refcnt_dec"></a><a id="refcnt_dec:-fd-d-s"></a>refcnt_dec: fd %d%s</dt>
<dd>

</dd>
<dt id="refcnt:-fd-%d%s"><a class="permalink" href="perldiag.html#refcnt:-fd-%25d%25s">#</a><a id="refcnt"></a><a id="refcnt:-fd-d-s"></a>refcnt: fd %d%s</dt>
<dd>

</dd>
<dt id="refcnt_inc:-fd-%d%s"><a class="permalink" href="perldiag.html#refcnt_inc:-fd-%25d%25s">#</a><a id="refcnt_inc"></a><a id="refcnt_inc:-fd-d-s"></a>refcnt_inc: fd %d%s</dt>
<dd>

<p>(P) Perl&#39;s I/O implementation failed an internal consistency check. If you see this message, something is very wrong.</p>

</dd>
<dt id="Reference-found-where-even-sized-list-expected"><a class="permalink" href="perldiag.html#Reference-found-where-even-sized-list-expected">#</a><a id="Reference"></a>Reference found where even-sized list expected</dt>
<dd>

<p>(W misc) You gave a single reference where Perl was expecting a list with an even number of elements (for assignment to a hash). This usually means that you used the anon hash constructor when you meant to use parens. In any case, a hash requires key/value <b>pairs</b>.</p>

<pre><code>%hash = { one =&gt; 1, two =&gt; 2, };	# WRONG
%hash = [ qw/ an anon array / ];	# WRONG
%hash = ( one =&gt; 1, two =&gt; 2, );	# right
%hash = qw( one 1 two 2 );			# also fine</code></pre>

</dd>
<dt id="Reference-is-already-weak"><a class="permalink" href="perldiag.html#Reference-is-already-weak">#</a><a id="Reference1"></a>Reference is already weak</dt>
<dd>

<p>(W misc) You have attempted to weaken a reference that is already weak. Doing so has no effect.</p>

</dd>
<dt id="Reference-is-not-weak"><a class="permalink" href="perldiag.html#Reference-is-not-weak">#</a><a id="Reference2"></a>Reference is not weak</dt>
<dd>

<p>(W misc) You have attempted to unweaken a reference that is not weak. Doing so has no effect.</p>

</dd>
<dt id="Reference-to-invalid-group-0-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Reference-to-invalid-group-0-in-regex;-marked-by-in-m/%25s/">#</a><a id="Reference-to-invalid-group-0-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Reference3"></a><a id="Reference-to-invalid-group-0-in-regex-marked-by----HERE-in-m-s"></a>Reference to invalid group 0 in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You used <code>\g0</code> or similar in a regular expression. You may refer to capturing parentheses only with strictly positive integers (normal backreferences) or with strictly negative integers (relative backreferences). Using 0 does not make sense.</p>

</dd>
<dt id="Reference-to-nonexistent-group-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Reference-to-nonexistent-group-in-regex;-marked-by-in-m/%25s/">#</a><a id="Reference-to-nonexistent-group-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Reference4"></a><a id="Reference-to-nonexistent-group-in-regex-marked-by----HERE-in-m-s"></a>Reference to nonexistent group in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You used something like <code>\7</code> in your regular expression, but there are not at least seven sets of capturing parentheses in the expression. If you wanted to have the character with ordinal 7 inserted into the regular expression, prepend zeroes to make it three digits long: <code>\007</code></p>

<p>The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered.</p>

</dd>
<dt id="Reference-to-nonexistent-named-group-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Reference-to-nonexistent-named-group-in-regex;-marked-by-in-m/%25s/">#</a><a id="Reference-to-nonexistent-named-group-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Reference5"></a><a id="Reference-to-nonexistent-named-group-in-regex-marked-by----HERE-in-m-s"></a>Reference to nonexistent named group in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You used something like <code>\k&#39;NAME&#39;</code> or <code>\k&lt;NAME&gt;</code> in your regular expression, but there is no corresponding named capturing parentheses such as <code>(?&#39;NAME&#39;...)</code> or <code>(?&lt;NAME&gt;...)</code>. Check if the name has been spelled correctly both in the backreference and the declaration.</p>

<p>The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered.</p>

</dd>
<dt id="Reference-to-nonexistent-or-unclosed-group-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Reference-to-nonexistent-or-unclosed-group-in-regex;-marked-by-in-m/%25s/">#</a><a id="Reference-to-nonexistent-or-unclosed-group-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Reference6"></a><a id="Reference-to-nonexistent-or-unclosed-group-in-regex-marked-by----HERE-in-m-s"></a>Reference to nonexistent or unclosed group in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You used something like <code>\g{-7}</code> in your regular expression, but there are not at least seven sets of closed capturing parentheses in the expression before where the <code>\g{-7}</code> was located.</p>

<p>The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered.</p>

</dd>
<dt id="regexp-memory-corruption"><a class="permalink" href="perldiag.html#regexp-memory-corruption">#</a><a id="regexp"></a>regexp memory corruption</dt>
<dd>

<p>(P) The regular expression engine got confused by what the regular expression compiler gave it.</p>

</dd>
<dt id="Regexp-modifier-&quot;/%c&quot;-may-appear-a-maximum-of-twice"><a class="permalink" href="perldiag.html#Regexp-modifier-%22/%25c%22-may-appear-a-maximum-of-twice">#</a><a id="Regexp"></a><a id="Regexp-modifier-c-may-appear-a-maximum-of-twice"></a>Regexp modifier &quot;/%c&quot; may appear a maximum of twice</dt>
<dd>

</dd>
<dt id="Regexp-modifier-&quot;%c&quot;-may-appear-a-maximum-of-twice-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Regexp-modifier-%22%25c%22-may-appear-a-maximum-of-twice-in-regex;-marked-by-in-m/%25s/">#</a><a id="Regexp-modifier-&quot;%c&quot;-may-appear-a-maximum-of-twice-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Regexp1"></a><a id="Regexp-modifier-c-may-appear-a-maximum-of-twice-in-regex-marked-by----HERE-in-m-s"></a>Regexp modifier &quot;%c&quot; may appear a maximum of twice in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) The regular expression pattern had too many occurrences of the specified modifier. Remove the extraneous ones.</p>

</dd>
<dt id="Regexp-modifier-&quot;%c&quot;-may-not-appear-after-the-&quot;-&quot;-in-regex;-marked-by-&lt;-HERE-in-m/%s/"><a class="permalink" href="perldiag.html#Regexp-modifier-%22%25c%22-may-not-appear-after-the-%22-%22-in-regex;-marked-by-%3C-HERE-in-m/%25s/">#</a><a id="Regexp2"></a><a id="Regexp-modifier-c-may-not-appear-after-the---in-regex-marked-by----HERE-in-m-s"></a>Regexp modifier &quot;%c&quot; may not appear after the &quot;-&quot; in regex; marked by &lt;-- HERE in m/%s/</dt>
<dd>

<p>(F) Turning off the given modifier has the side effect of turning on another one. Perl currently doesn&#39;t allow this. Reword the regular expression to use the modifier you want to turn on (and place it before the minus), instead of the one you want to turn off.</p>

</dd>
<dt id="Regexp-modifier-&quot;/%c&quot;-may-not-appear-twice"><a class="permalink" href="perldiag.html#Regexp-modifier-%22/%25c%22-may-not-appear-twice">#</a><a id="Regexp3"></a><a id="Regexp-modifier-c-may-not-appear-twice"></a>Regexp modifier &quot;/%c&quot; may not appear twice</dt>
<dd>

</dd>
<dt id="Regexp-modifier-&quot;%c&quot;-may-not-appear-twice-in-regex;-marked-by-&lt;-HERE-in-m/%s/"><a class="permalink" href="perldiag.html#Regexp-modifier-%22%25c%22-may-not-appear-twice-in-regex;-marked-by-%3C-HERE-in-m/%25s/">#</a><a id="Regexp4"></a><a id="Regexp-modifier-c-may-not-appear-twice-in-regex-marked-by----HERE-in-m-s"></a>Regexp modifier &quot;%c&quot; may not appear twice in regex; marked by &lt;-- HERE in m/%s/</dt>
<dd>

<p>(F) The regular expression pattern had too many occurrences of the specified modifier. Remove the extraneous ones.</p>

</dd>
<dt id="Regexp-modifiers-&quot;/%c&quot;-and-&quot;/%c&quot;-are-mutually-exclusive"><a class="permalink" href="perldiag.html#Regexp-modifiers-%22/%25c%22-and-%22/%25c%22-are-mutually-exclusive">#</a><a id="Regexp5"></a><a id="Regexp-modifiers-c-and-c-are-mutually-exclusive"></a>Regexp modifiers &quot;/%c&quot; and &quot;/%c&quot; are mutually exclusive</dt>
<dd>

</dd>
<dt id="Regexp-modifiers-&quot;%c&quot;-and-&quot;%c&quot;-are-mutually-exclusive-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Regexp-modifiers-%22%25c%22-and-%22%25c%22-are-mutually-exclusive-in-regex;-marked-by-in-m/%25s/">#</a><a id="Regexp-modifiers-&quot;%c&quot;-and-&quot;%c&quot;-are-mutually-exclusive-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Regexp6"></a><a id="Regexp-modifiers-c-and-c-are-mutually-exclusive-in-regex-marked-by----HERE-in-m-s"></a>Regexp modifiers &quot;%c&quot; and &quot;%c&quot; are mutually exclusive in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) The regular expression pattern had more than one of these mutually exclusive modifiers. Retain only the modifier that is supposed to be there.</p>

</dd>
<dt id="Regexp-out-of-space-in-regex-m/%s/"><a class="permalink" href="perldiag.html#Regexp-out-of-space-in-regex-m/%25s/">#</a><a id="Regexp7"></a><a id="Regexp-out-of-space-in-regex-m-s"></a>Regexp out of space in regex m/%s/</dt>
<dd>

<p>(P) A &quot;can&#39;t happen&quot; error, because safemalloc() should have caught it earlier.</p>

</dd>
<dt id="Repeated-format-line-will-never-terminate-(~~-and-@#)"><a class="permalink" href="perldiag.html#Repeated-format-line-will-never-terminate-(~~-and-@%23)">#</a><a id="Repeated"></a><a id="Repeated-format-line-will-never-terminate-and"></a>Repeated format line will never terminate (~~ and @#)</dt>
<dd>

<p>(F) Your format contains the ~~ repeat-until-blank sequence and a numeric field that will never go blank so that the repetition never terminates. You might use ^# instead. See <a href="perlform.html">perlform</a>.</p>

</dd>
<dt id="Replacement-list-is-longer-than-search-list"><a class="permalink" href="perldiag.html#Replacement-list-is-longer-than-search-list">#</a><a id="Replacement"></a>Replacement list is longer than search list</dt>
<dd>

<p>(W misc) You have used a replacement list that is longer than the search list. So the additional elements in the replacement list are meaningless.</p>

</dd>
<dt id="&#39;(*%s&#39;-requires-a-terminating-&#39;:&#39;-in-regex;-marked-by-&lt;-HERE-in-m/%s/"><a class="permalink" href="perldiag.html#&#39;(*%25s&#39;-requires-a-terminating-&#39;:&#39;-in-regex;-marked-by-%3C-HERE-in-m/%25s/">#</a><a id="s-requires-a-terminating-:-in-regex-marked-by----HERE-in-m-s"></a>&#39;(*%s&#39; requires a terminating &#39;:&#39; in regex; marked by &lt;-- HERE in m/%s/</dt>
<dd>

<p>(F) You used a construct that needs a colon and pattern argument. Supply these or check that you are using the right construct.</p>

</dd>
<dt id="&#39;%s&#39;-resolved-to-&#39;\o{%s}%d&#39;"><a class="permalink" href="perldiag.html#&#39;%25s&#39;-resolved-to-&#39;%5Co%7B%25s%7D%25d&#39;">#</a><a id="s-resolved-to-o-s-d"></a>&#39;%s&#39; resolved to &#39;\o{%s}%d&#39;</dt>
<dd>

<p>As of Perl 5.32, this message is no longer generated. Instead, see <a href="perldiag.html#Non-octal-character-%27%25c%27-terminates-%5Co-early.-Resolved-as-%22%25s%22">&quot;Non-octal character &#39;%c&#39; terminates \o early. Resolved as &quot;%s&quot;&quot;</a>. (W misc, regexp) You wrote something like <code>\08</code>, or <code>\179</code> in a double-quotish string. All but the last digit is treated as a single character, specified in octal. The last digit is the next character in the string. To tell Perl that this is indeed what you want, you can use the <code>\o{ }</code> syntax, or use exactly three digits to specify the octal for the character.</p>

</dd>
<dt id="Reversed-%s=-operator"><a class="permalink" href="perldiag.html#Reversed-%25s=-operator">#</a><a id="Reversed"></a><a id="Reversed-s-operator"></a>Reversed %s= operator</dt>
<dd>

<p>(W syntax) You wrote your assignment operator backwards. The = must always come last, to avoid ambiguity with subsequent unary operators.</p>

</dd>
<dt id="rewinddir()-attempted-on-invalid-dirhandle-%s"><a class="permalink" href="perldiag.html#rewinddir()-attempted-on-invalid-dirhandle-%25s">#</a><a id="rewinddir"></a><a id="rewinddir-attempted-on-invalid-dirhandle-s"></a>rewinddir() attempted on invalid dirhandle %s</dt>
<dd>

<p>(W io) The dirhandle you tried to do a rewinddir() on is either closed or not really a dirhandle. Check your control flow.</p>

</dd>
<dt id="Scalars-leaked:-%d"><a class="permalink" href="perldiag.html#Scalars-leaked:-%25d">#</a><a id="Scalars"></a><a id="Scalars-leaked:-d"></a>Scalars leaked: %d</dt>
<dd>

<p>(S internal) Something went wrong in Perl&#39;s internal bookkeeping of scalars: not all scalar variables were deallocated by the time Perl exited. What this usually indicates is a memory leak, which is of course bad, especially if the Perl program is intended to be long-running.</p>

</dd>
<dt id="Scalar-value-@%s[%s]-better-written-as-$%s[%s]"><a class="permalink" href="perldiag.html#Scalar-value-@%25s%5B%25s%5D-better-written-as-$%25s%5B%25s%5D">#</a><a id="Scalar"></a><a id="Scalar-value-s-s-better-written-as-s-s"></a>Scalar value @%s[%s] better written as $%s[%s]</dt>
<dd>

<p>(W syntax) You&#39;ve used an array slice (indicated by @) to select a single element of an array. Generally it&#39;s better to ask for a scalar value (indicated by $). The difference is that <code>$foo[&amp;bar]</code> always behaves like a scalar, both when assigning to it and when evaluating its argument, while <code>@foo[&amp;bar]</code> behaves like a list when you assign to it, and provides a list context to its subscript, which can do weird things if you&#39;re expecting only one subscript.</p>

<p>On the other hand, if you were actually hoping to treat the array element as a list, you need to look into how references work, because Perl will not magically convert between scalars and lists for you. See <a href="perlref.html">perlref</a>.</p>

</dd>
<dt id="Scalar-value-@%s{%s}-better-written-as-$%s{%s}"><a class="permalink" href="perldiag.html#Scalar-value-@%25s%7B%25s%7D-better-written-as-$%25s%7B%25s%7D">#</a><a id="Scalar1"></a><a id="Scalar-value-s-s-better-written-as-s-s1"></a>Scalar value @%s{%s} better written as $%s{%s}</dt>
<dd>

<p>(W syntax) You&#39;ve used a hash slice (indicated by @) to select a single element of a hash. Generally it&#39;s better to ask for a scalar value (indicated by $). The difference is that <code>$foo{&amp;bar}</code> always behaves like a scalar, both when assigning to it and when evaluating its argument, while <code>@foo{&amp;bar}</code> behaves like a list when you assign to it, and provides a list context to its subscript, which can do weird things if you&#39;re expecting only one subscript.</p>

<p>On the other hand, if you were actually hoping to treat the hash element as a list, you need to look into how references work, because Perl will not magically convert between scalars and lists for you. See <a href="perlref.html">perlref</a>.</p>

</dd>
<dt id="Search-pattern-not-terminated"><a class="permalink" href="perldiag.html#Search-pattern-not-terminated">#</a><a id="Search"></a>Search pattern not terminated</dt>
<dd>

<p>(F) The lexer couldn&#39;t find the final delimiter of a // or m{} construct. Remember that bracketing delimiters count nesting level. Missing the leading <code>$</code> from a variable <code>$m</code> may cause this error.</p>

<p>Note that since Perl 5.10.0 a // can also be the <i>defined-or</i> construct, not just the empty search pattern. Therefore code written in Perl 5.10.0 or later that uses the // as the <i>defined-or</i> can be misparsed by pre-5.10.0 Perls as a non-terminated search pattern.</p>

</dd>
<dt id="seekdir()-attempted-on-invalid-dirhandle-%s"><a class="permalink" href="perldiag.html#seekdir()-attempted-on-invalid-dirhandle-%25s">#</a><a id="seekdir"></a><a id="seekdir-attempted-on-invalid-dirhandle-s"></a>seekdir() attempted on invalid dirhandle %s</dt>
<dd>

<p>(W io) The dirhandle you are doing a seekdir() on is either closed or not really a dirhandle. Check your control flow.</p>

</dd>
<dt id="%sseek()-on-unopened-filehandle"><a class="permalink" href="perldiag.html#%25sseek()-on-unopened-filehandle">#</a><a id="sseek-on-unopened-filehandle"></a>%sseek() on unopened filehandle</dt>
<dd>

<p>(W unopened) You tried to use the seek() or sysseek() function on a filehandle that was either never opened or has since been closed.</p>

</dd>
<dt id="select-not-implemented"><a class="permalink" href="perldiag.html#select-not-implemented">#</a><a id="select"></a>select not implemented</dt>
<dd>

<p>(F) This machine doesn&#39;t implement the select() system call.</p>

</dd>
<dt id="Self-ties-of-arrays-and-hashes-are-not-supported"><a class="permalink" href="perldiag.html#Self-ties-of-arrays-and-hashes-are-not-supported">#</a><a id="Self"></a>Self-ties of arrays and hashes are not supported</dt>
<dd>

<p>(F) Self-ties are of arrays and hashes are not supported in the current implementation.</p>

</dd>
<dt id="Semicolon-seems-to-be-missing"><a class="permalink" href="perldiag.html#Semicolon-seems-to-be-missing">#</a><a id="Semicolon"></a>Semicolon seems to be missing</dt>
<dd>

<p>(W semicolon) A nearby syntax error was probably caused by a missing semicolon, or possibly some other missing operator, such as a comma.</p>

</dd>
<dt id="semi-panic:-attempt-to-dup-freed-string"><a class="permalink" href="perldiag.html#semi-panic:-attempt-to-dup-freed-string">#</a><a id="semi"></a>semi-panic: attempt to dup freed string</dt>
<dd>

<p>(S internal) The internal newSVsv() routine was called to duplicate a scalar that had previously been marked as free.</p>

</dd>
<dt id="sem%s-not-implemented"><a class="permalink" href="perldiag.html#sem%25s-not-implemented">#</a><a id="sem"></a><a id="sem-s-not-implemented"></a>sem%s not implemented</dt>
<dd>

<p>(F) You don&#39;t have System V semaphore IPC on your system.</p>

</dd>
<dt id="send()-on-closed-socket-%s"><a class="permalink" href="perldiag.html#send()-on-closed-socket-%25s">#</a><a id="send"></a><a id="send-on-closed-socket-s"></a>send() on closed socket %s</dt>
<dd>

<p>(W closed) The socket you&#39;re sending to got itself closed sometime before now. Check your control flow.</p>

</dd>
<dt id="Sequence-&quot;\c{&quot;-invalid"><a class="permalink" href="perldiag.html#Sequence-%22%5Cc%7B%22-invalid">#</a><a id="Sequence"></a><a id="Sequence-c-invalid"></a>Sequence &quot;\c{&quot; invalid</dt>
<dd>

<p>(F) These three characters may not appear in sequence in a double-quotish context. This message is raised only on non-ASCII platforms (a different error message is output on ASCII ones). If you were intending to specify a control character with this sequence, you&#39;ll have to use a different way to specify it.</p>

</dd>
<dt id="Sequence-(?-incomplete-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Sequence-(?-incomplete-in-regex;-marked-by-in-m/%25s/">#</a><a id="Sequence-(?-incomplete-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Sequence1"></a><a id="Sequence-incomplete-in-regex-marked-by----HERE-in-m-s"></a>Sequence (? incomplete in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) A regular expression ended with an incomplete extension (?. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Sequence-(?%c...)-not-implemented-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Sequence-(?%25c...)-not-implemented-in-regex;-marked-by-in-m/%25s/">#</a><a id="Sequence-(?%c...)-not-implemented-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Sequence2"></a><a id="Sequence-c...-not-implemented-in-regex-marked-by----HERE-in-m-s"></a>Sequence (?%c...) not implemented in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) A proposed regular expression extension has the character reserved but has not yet been written. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Sequence-(?%s...)-not-recognized-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Sequence-(?%25s...)-not-recognized-in-regex;-marked-by-in-m/%25s/">#</a><a id="Sequence-(?%s...)-not-recognized-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Sequence3"></a><a id="Sequence-s...-not-recognized-in-regex-marked-by----HERE-in-m-s"></a>Sequence (?%s...) not recognized in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You used a regular expression extension that doesn&#39;t make sense. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered. This may happen when using the <code>(?^...)</code> construct to tell Perl to use the default regular expression modifiers, and you redundantly specify a default modifier. For other causes, see <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Sequence-(?#...-not-terminated-in-regex-m/%s/"><a class="permalink" href="perldiag.html#Sequence-(?%23...-not-terminated-in-regex-m/%25s/">#</a><a id="Sequence4"></a><a id="Sequence-...-not-terminated-in-regex-m-s"></a>Sequence (?#... not terminated in regex m/%s/</dt>
<dd>

<p>(F) A regular expression comment must be terminated by a closing parenthesis. Embedded parentheses aren&#39;t allowed. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Sequence-(?&amp;...-not-terminated-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Sequence-(?&amp;...-not-terminated-in-regex;-marked-by-in-m/%25s/">#</a><a id="Sequence-(?&amp;...-not-terminated-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Sequence5"></a><a id="Sequence-...-not-terminated-in-regex-marked-by----HERE-in-m-s"></a>Sequence (?&amp;... not terminated in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) A named reference of the form <code>(?&amp;...)</code> was missing the final closing parenthesis after the name. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered.</p>

</dd>
<dt id="Sequence-(?%c...-not-terminated-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Sequence-(?%25c...-not-terminated-in-regex;-marked-by-in-m/%25s/">#</a><a id="Sequence-(?%c...-not-terminated-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Sequence6"></a><a id="Sequence-c...-not-terminated-in-regex-marked-by----HERE-in-m-s"></a>Sequence (?%c... not terminated in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) A named group of the form <code>(?&#39;...&#39;)</code> or <code>(?&lt;...&gt;)</code> was missing the final closing quote or angle bracket. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered.</p>

</dd>
<dt id="Sequence-(?(%c...-not-terminated-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Sequence-(?(%25c...-not-terminated-in-regex;-marked-by-in-m/%25s/">#</a><a id="Sequence-(?(%c...-not-terminated-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Sequence7"></a><a id="Sequence-c...-not-terminated-in-regex-marked-by----HERE-in-m-s1"></a>Sequence (?(%c... not terminated in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) A named reference of the form <code>(?(&#39;...&#39;)...)</code> or <code>(?(&lt;...&gt;)...)</code> was missing the final closing quote or angle bracket after the name. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered.</p>

</dd>
<dt id="Sequence-(?...-not-terminated-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Sequence-(?...-not-terminated-in-regex;-marked-by-in-m/%25s/">#</a><a id="Sequence-(?...-not-terminated-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Sequence8"></a><a id="Sequence-...-not-terminated-in-regex-marked-by----HERE-in-m-s1"></a>Sequence (?... not terminated in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) There was no matching closing parenthesis for the &#39;(&#39;. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered.</p>

</dd>
<dt id="Sequence-\%s...-not-terminated-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Sequence-%5C%25s...-not-terminated-in-regex;-marked-by-in-m/%25s/">#</a><a id="Sequence-\%s...-not-terminated-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Sequence9"></a><a id="Sequence-s...-not-terminated-in-regex-marked-by----HERE-in-m-s"></a>Sequence \%s... not terminated in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) The regular expression expects a mandatory argument following the escape sequence and this has been omitted or incorrectly written.</p>

</dd>
<dt id="Sequence-(?{...})-not-terminated-with-&#39;)&#39;"><a class="permalink" href="perldiag.html#Sequence-(?%7B...%7D)-not-terminated-with-&#39;)&#39;">#</a><a id="Sequence10"></a><a id="Sequence-...-not-terminated-with"></a>Sequence (?{...}) not terminated with &#39;)&#39;</dt>
<dd>

<p>(F) The end of the perl code contained within the {...} must be followed immediately by a &#39;)&#39;.</p>

</dd>
<dt id="Sequence-(?P&gt;...-not-terminated-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Sequence-(?P%3E...-not-terminated-in-regex;-marked-by-in-m/%25s/">#</a><a id="Sequence-(?P&gt;...-not-terminated-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Sequence11"></a><a id="Sequence-P...-not-terminated-in-regex-marked-by----HERE-in-m-s"></a>Sequence (?P&gt;... not terminated in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) A named reference of the form <code>(?P&gt;...)</code> was missing the final closing parenthesis after the name. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered.</p>

</dd>
<dt id="Sequence-(?P-in-m/%s/"><a class="permalink" href="perldiag.html#Sequence-(?P-in-m/%25s/">#</a><a id="Sequence-(?P&lt;...-not-terminated-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Sequence12"></a><a id="Sequence-P...-not-terminated-in-regex-marked-by----HERE-in-m-s1"></a>Sequence (?P&lt;... not terminated in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) A named group of the form <code>(?P&lt;...&gt;&#39;)</code> was missing the final closing angle bracket. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered.</p>

</dd>
<dt id="Sequence-?P=...-not-terminated-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Sequence-?P=...-not-terminated-in-regex;-marked-by-in-m/%25s/">#</a><a id="Sequence-?P=...-not-terminated-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Sequence13"></a><a id="Sequence-P-...-not-terminated-in-regex-marked-by----HERE-in-m-s"></a>Sequence ?P=... not terminated in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) A named reference of the form <code>(?P=...)</code> was missing the final closing parenthesis after the name. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered.</p>

</dd>
<dt id="Sequence-(?R)-not-terminated-in-regex-m/%s/"><a class="permalink" href="perldiag.html#Sequence-(?R)-not-terminated-in-regex-m/%25s/">#</a><a id="Sequence14"></a><a id="Sequence-R-not-terminated-in-regex-m-s"></a>Sequence (?R) not terminated in regex m/%s/</dt>
<dd>

<p>(F) An <code>(?R)</code> or <code>(?0)</code> sequence in a regular expression was missing the final parenthesis.</p>

</dd>
<dt id="500-Server-error"><a class="permalink" href="perldiag.html#500-Server-error">#</a><a id="500"></a><a id="Server-error"></a>500 Server error</dt>
<dd>

<p>(A) This is the error message generally seen in a browser window when trying to run a CGI program (including SSI) over the web. The actual error text varies widely from server to server. The most frequently-seen variants are &quot;500 Server error&quot;, &quot;Method (something) not permitted&quot;, &quot;Document contains no data&quot;, &quot;Premature end of script headers&quot;, and &quot;Did not produce a valid header&quot;.</p>

<p><b>This is a CGI error, not a Perl error</b>.</p>

<p>You need to make sure your script is executable, is accessible by the user CGI is running the script under (which is probably not the user account you tested it under), does not rely on any environment variables (like PATH) from the user it isn&#39;t running under, and isn&#39;t in a location where the CGI server can&#39;t find it, basically, more or less. Please see the following for more information:</p>

<pre><code class="plaintext">https://www.perl.org/CGI_MetaFAQ.html
http://www.htmlhelp.org/faq/cgifaq.html
http://www.w3.org/Security/Faq/</code></pre>

<p>You should also look at <a href="perlfaq9.html">perlfaq9</a>.</p>

</dd>
<dt id="setegid()-not-implemented"><a class="permalink" href="perldiag.html#setegid()-not-implemented">#</a><a id="setegid"></a><a id="setegid-not-implemented"></a>setegid() not implemented</dt>
<dd>

<p>(F) You tried to assign to <code>$)</code>, and your operating system doesn&#39;t support the setegid() system call (or equivalent), or at least Configure didn&#39;t think so.</p>

</dd>
<dt id="seteuid()-not-implemented"><a class="permalink" href="perldiag.html#seteuid()-not-implemented">#</a><a id="seteuid"></a><a id="seteuid-not-implemented"></a>seteuid() not implemented</dt>
<dd>

<p>(F) You tried to assign to <code>$&gt;</code>, and your operating system doesn&#39;t support the seteuid() system call (or equivalent), or at least Configure didn&#39;t think so.</p>

</dd>
<dt id="setpgrp-can&#39;t-take-arguments"><a class="permalink" href="perldiag.html#setpgrp-can&#39;t-take-arguments">#</a><a id="setpgrp"></a><a id="setpgrp-cant-take-arguments"></a>setpgrp can&#39;t take arguments</dt>
<dd>

<p>(F) Your system has the setpgrp() from BSD 4.2, which takes no arguments, unlike POSIX setpgid(), which takes a process ID and process group ID.</p>

</dd>
<dt id="setrgid()-not-implemented"><a class="permalink" href="perldiag.html#setrgid()-not-implemented">#</a><a id="setrgid"></a><a id="setrgid-not-implemented"></a>setrgid() not implemented</dt>
<dd>

<p>(F) You tried to assign to <code>$(</code>, and your operating system doesn&#39;t support the setrgid() system call (or equivalent), or at least Configure didn&#39;t think so.</p>

</dd>
<dt id="setruid()-not-implemented"><a class="permalink" href="perldiag.html#setruid()-not-implemented">#</a><a id="setruid"></a><a id="setruid-not-implemented"></a>setruid() not implemented</dt>
<dd>

<p>(F) You tried to assign to <code>$&lt;</code>, and your operating system doesn&#39;t support the setruid() system call (or equivalent), or at least Configure didn&#39;t think so.</p>

</dd>
<dt id="setsockopt()-on-closed-socket-%s"><a class="permalink" href="perldiag.html#setsockopt()-on-closed-socket-%25s">#</a><a id="setsockopt"></a><a id="setsockopt-on-closed-socket-s"></a>setsockopt() on closed socket %s</dt>
<dd>

<p>(W closed) You tried to set a socket option on a closed socket. Did you forget to check the return value of your socket() call? See <a href="perlfunc.html#setsockopt">&quot;setsockopt&quot; in perlfunc</a>.</p>

</dd>
<dt id="Setting-$/-to-a-reference-to-%s-is-forbidden"><a class="permalink" href="perldiag.html#Setting-$/-to-a-reference-to-%25s-is-forbidden">#</a><a id="Setting"></a><a id="Setting-to-a-reference-to-s-is-forbidden"></a>Setting $/ to a reference to %s is forbidden</dt>
<dd>

<p>(F) You assigned a reference to a scalar to <code>$/</code> where the referenced item is not a positive integer. In older perls this <b>appeared</b> to work the same as setting it to <code>undef</code> but was in fact internally different, less efficient and with very bad luck could have resulted in your file being split by a stringified form of the reference.</p>

<p>In Perl 5.20.0 this was changed so that it would be <b>exactly</b> the same as setting <code>$/</code> to undef, with the exception that this warning would be thrown.</p>

<p>You are recommended to change your code to set <code>$/</code> to <code>undef</code> explicitly if you wish to slurp the file. As of Perl 5.28 assigning <code>$/</code> to a reference to an integer which isn&#39;t positive is a fatal error.</p>

</dd>
<dt id="Setting-$/-to-%s-reference-is-forbidden"><a class="permalink" href="perldiag.html#Setting-$/-to-%25s-reference-is-forbidden">#</a><a id="Setting1"></a><a id="Setting-to-s-reference-is-forbidden"></a>Setting $/ to %s reference is forbidden</dt>
<dd>

<p>(F) You tried to assign a reference to a non integer to <code>$/</code>. In older Perls this would have behaved similarly to setting it to a reference to a positive integer, where the integer was the address of the reference. As of Perl 5.20.0 this is a fatal error, to allow future versions of Perl to use non-integer refs for more interesting purposes.</p>

</dd>
<dt id="shm%s-not-implemented"><a class="permalink" href="perldiag.html#shm%25s-not-implemented">#</a><a id="shm"></a><a id="shm-s-not-implemented"></a>shm%s not implemented</dt>
<dd>

<p>(F) You don&#39;t have System V shared memory IPC on your system.</p>

</dd>
<dt id="!=~-should-be-!~"><a class="permalink" href="perldiag.html#!=~-should-be-!~">#</a><a id="should-be"></a>!=~ should be !~</dt>
<dd>

<p>(W syntax) The non-matching operator is !~, not !=~. !=~ will be interpreted as the != (numeric not equal) and ~ (1&#39;s complement) operators: probably not what you intended.</p>

</dd>
<dt id="/%s/-should-probably-be-written-as-&quot;%s&quot;"><a class="permalink" href="perldiag.html#/%25s/-should-probably-be-written-as-%22%25s%22">#</a><a id="s-should-probably-be-written-as-s"></a>/%s/ should probably be written as &quot;%s&quot;</dt>
<dd>

<p>(W syntax) You have used a pattern where Perl expected to find a string, as in the first argument to <code>join</code>. Perl will treat the true or false result of matching the pattern against $_ as the string, which is probably not what you had in mind.</p>

</dd>
<dt id="shutdown()-on-closed-socket-%s"><a class="permalink" href="perldiag.html#shutdown()-on-closed-socket-%25s">#</a><a id="shutdown"></a><a id="shutdown-on-closed-socket-s"></a>shutdown() on closed socket %s</dt>
<dd>

<p>(W closed) You tried to do a shutdown on a closed socket. Seems a bit superfluous.</p>

</dd>
<dt id="SIG%s-handler-&quot;%s&quot;-not-defined"><a class="permalink" href="perldiag.html#SIG%25s-handler-%22%25s%22-not-defined">#</a><a id="SIG"></a><a id="SIG-s-handler-s-not-defined"></a>SIG%s handler &quot;%s&quot; not defined</dt>
<dd>

<p>(W signal) The signal handler named in %SIG doesn&#39;t, in fact, exist. Perhaps you put it into the wrong package?</p>

</dd>
<dt id="Slab-leaked-from-cv-%p"><a class="permalink" href="perldiag.html#Slab-leaked-from-cv-%25p">#</a><a id="Slab"></a><a id="Slab-leaked-from-cv-p"></a>Slab leaked from cv %p</dt>
<dd>

<p>(S) If you see this message, then something is seriously wrong with the internal bookkeeping of op trees. An op tree needed to be freed after a compilation error, but could not be found, so it was leaked instead.</p>

</dd>
<dt id="sleep(%u)-too-large"><a class="permalink" href="perldiag.html#sleep(%25u)-too-large">#</a><a id="sleep"></a><a id="sleep-u-too-large"></a>sleep(%u) too large</dt>
<dd>

<p>(W overflow) You called <code>sleep</code> with a number that was larger than it can reliably handle and <code>sleep</code> probably slept for less time than requested.</p>

</dd>
<dt id="Slurpy-parameter-not-last"><a class="permalink" href="perldiag.html#Slurpy-parameter-not-last">#</a><a id="Slurpy"></a>Slurpy parameter not last</dt>
<dd>

<p>(F) In a subroutine signature, you put something after a slurpy (array or hash) parameter. The slurpy parameter takes all the available arguments, so there can&#39;t be any left to fill later parameters.</p>

</dd>
<dt id="Smart-matching-a-non-overloaded-object-breaks-encapsulation"><a class="permalink" href="perldiag.html#Smart-matching-a-non-overloaded-object-breaks-encapsulation">#</a><a id="Smart"></a>Smart matching a non-overloaded object breaks encapsulation</dt>
<dd>

<p>(F) You should not use the <code>~~</code> operator on an object that does not overload it: Perl refuses to use the object&#39;s underlying structure for the smart match.</p>

</dd>
<dt id="Smartmatch-is-experimental"><a class="permalink" href="perldiag.html#Smartmatch-is-experimental">#</a><a id="Smartmatch"></a>Smartmatch is experimental</dt>
<dd>

<p>(S experimental::smartmatch) This warning is emitted if you use the smartmatch (<code>~~</code>) operator. This is currently an experimental feature, and its details are subject to change in future releases of Perl. Particularly, its current behavior is noticed for being unnecessarily complex and unintuitive, and is very likely to be overhauled.</p>

</dd>
<dt id="Sorry,-hash-keys-must-be-smaller-than-2**31-bytes"><a class="permalink" href="perldiag.html#Sorry,-hash-keys-must-be-smaller-than-2**31-bytes">#</a><a id="Sorry"></a><a id="Sorry-hash-keys-must-be-smaller-than-2-31-bytes"></a>Sorry, hash keys must be smaller than 2**31 bytes</dt>
<dd>

<p>(F) You tried to create a hash containing a very large key, where &quot;very large&quot; means that it needs at least 2 gigabytes to store. Unfortunately, Perl doesn&#39;t yet handle such large hash keys. You should reconsider your design to avoid hashing such a long string directly.</p>

</dd>
<dt id="sort-is-now-a-reserved-word"><a class="permalink" href="perldiag.html#sort-is-now-a-reserved-word">#</a><a id="sort"></a>sort is now a reserved word</dt>
<dd>

<p>(F) An ancient error message that almost nobody ever runs into anymore. But before sort was a keyword, people sometimes used it as a filehandle.</p>

</dd>
<dt id="Source-filters-apply-only-to-byte-streams"><a class="permalink" href="perldiag.html#Source-filters-apply-only-to-byte-streams">#</a><a id="Source"></a>Source filters apply only to byte streams</dt>
<dd>

<p>(F) You tried to activate a source filter (usually by loading a source filter module) within a string passed to <code>eval</code>. This is not permitted under the <code>unicode_eval</code> feature. Consider using <code>evalbytes</code> instead. See <a href="feature.html">feature</a>.</p>

</dd>
<dt id="splice()-offset-past-end-of-array"><a class="permalink" href="perldiag.html#splice()-offset-past-end-of-array">#</a><a id="splice"></a><a id="splice-offset-past-end-of-array"></a>splice() offset past end of array</dt>
<dd>

<p>(W misc) You attempted to specify an offset that was past the end of the array passed to splice(). Splicing will instead commence at the end of the array, rather than past it. If this isn&#39;t what you want, try explicitly pre-extending the array by assigning $#array = $offset. See <a href="perlfunc.html#splice">&quot;splice&quot; in perlfunc</a>.</p>

</dd>
<dt id="Split-loop"><a class="permalink" href="perldiag.html#Split-loop">#</a><a id="Split"></a>Split loop</dt>
<dd>

<p>(P) The split was looping infinitely. (Obviously, a split shouldn&#39;t iterate more times than there are characters of input, which is what happened.) See <a href="perlfunc.html#split">&quot;split&quot; in perlfunc</a>.</p>

</dd>
<dt id="Statement-unlikely-to-be-reached"><a class="permalink" href="perldiag.html#Statement-unlikely-to-be-reached">#</a><a id="Statement"></a>Statement unlikely to be reached</dt>
<dd>

<p>(W exec) You did an exec() with some statement after it other than a die(). This is almost always an error, because exec() never returns unless there was a failure. You probably wanted to use system() instead, which does return. To suppress this warning, put the exec() in a block by itself.</p>

</dd>
<dt id="&quot;state&quot;-subroutine-%s-can&#39;t-be-in-a-package"><a class="permalink" href="perldiag.html#%22state%22-subroutine-%25s-can&#39;t-be-in-a-package">#</a><a id="state-subroutine-s-cant-be-in-a-package"></a>&quot;state&quot; subroutine %s can&#39;t be in a package</dt>
<dd>

<p>(F) Lexically scoped subroutines aren&#39;t in a package, so it doesn&#39;t make sense to try to declare one with a package qualifier on the front.</p>

</dd>
<dt id="&quot;state-%s&quot;-used-in-sort-comparison"><a class="permalink" href="perldiag.html#%22state-%25s%22-used-in-sort-comparison">#</a><a id="state-s-used-in-sort-comparison"></a>&quot;state %s&quot; used in sort comparison</dt>
<dd>

<p>(W syntax) The package variables $a and $b are used for sort comparisons. You used $a or $b in as an operand to the <code>&lt;=&gt;</code> or <code>cmp</code> operator inside a sort comparison block, and the variable had earlier been declared as a lexical variable. Either qualify the sort variable with the package name, or rename the lexical variable.</p>

</dd>
<dt id="&quot;state&quot;-variable-%s-can&#39;t-be-in-a-package"><a class="permalink" href="perldiag.html#%22state%22-variable-%25s-can&#39;t-be-in-a-package">#</a><a id="state-variable-s-cant-be-in-a-package"></a>&quot;state&quot; variable %s can&#39;t be in a package</dt>
<dd>

<p>(F) Lexically scoped variables aren&#39;t in a package, so it doesn&#39;t make sense to try to declare one with a package qualifier on the front. Use local() if you want to localize a package variable.</p>

</dd>
<dt id="stat()-on-unopened-filehandle-%s"><a class="permalink" href="perldiag.html#stat()-on-unopened-filehandle-%25s">#</a><a id="stat"></a><a id="stat-on-unopened-filehandle-s"></a>stat() on unopened filehandle %s</dt>
<dd>

<p>(W unopened) You tried to use the stat() function on a filehandle that was either never opened or has since been closed.</p>

</dd>
<dt id="Strings-with-code-points-over-0xFF-may-not-be-mapped-into-in-memory-file-handles"><a class="permalink" href="perldiag.html#Strings-with-code-points-over-0xFF-may-not-be-mapped-into-in-memory-file-handles">#</a><a id="Strings"></a>Strings with code points over 0xFF may not be mapped into in-memory file handles</dt>
<dd>

<p>(W utf8) You tried to open a reference to a scalar for read or append where the scalar contained code points over 0xFF. In-memory files model on-disk files and can only contain bytes.</p>

</dd>
<dt id="Stub-found-while-resolving-method-&quot;%s&quot;-overloading-&quot;%s&quot;-in-package-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Stub-found-while-resolving-method-%22%25s%22-overloading-%22%25s%22-in-package-%22%25s%22">#</a><a id="Stub"></a><a id="Stub-found-while-resolving-method-s-overloading-s-in-package-s"></a>Stub found while resolving method &quot;%s&quot; overloading &quot;%s&quot; in package &quot;%s&quot;</dt>
<dd>

<p>(P) Overloading resolution over @ISA tree may be broken by importation stubs. Stubs should never be implicitly created, but explicit calls to <code>can</code> may break this.</p>

</dd>
<dt id="Subroutine-attributes-must-come-before-the-signature"><a class="permalink" href="perldiag.html#Subroutine-attributes-must-come-before-the-signature">#</a><a id="Subroutine"></a>Subroutine attributes must come before the signature</dt>
<dd>

<p>(F) When subroutine signatures are enabled, any subroutine attributes must come before the signature. Note that this order was the opposite in versions 5.22..5.26. So:</p>

<pre><code>sub foo :lvalue ($a, $b) { ... }  # 5.20 and 5.28 +
sub foo ($a, $b) :lvalue { ... }  # 5.22 .. 5.26</code></pre>

</dd>
<dt id="Subroutine-&quot;&amp;%s&quot;-is-not-available"><a class="permalink" href="perldiag.html#Subroutine-%22&amp;%25s%22-is-not-available">#</a><a id="Subroutine1"></a><a id="Subroutine-s-is-not-available"></a>Subroutine &quot;&amp;%s&quot; is not available</dt>
<dd>

<p>(W closure) During compilation, an inner named subroutine or eval is attempting to capture an outer lexical subroutine that is not currently available. This can happen for one of two reasons. First, the lexical subroutine may be declared in an outer anonymous subroutine that has not yet been created. (Remember that named subs are created at compile time, while anonymous subs are created at run-time.) For example,</p>

<pre><code class="plaintext">sub { my sub a {...} sub f { \&amp;a } }</code></pre>

<p>At the time that f is created, it can&#39;t capture the current &quot;a&quot; sub, since the anonymous subroutine hasn&#39;t been created yet. Conversely, the following won&#39;t give a warning since the anonymous subroutine has by now been created and is live:</p>

<pre><code>sub { my sub a {...} eval &#39;sub f { \&amp;a }&#39; }-&gt;();</code></pre>

<p>The second situation is caused by an eval accessing a lexical subroutine that has gone out of scope, for example,</p>

<pre><code>    sub f {
	my sub a {...}
	sub { eval &#39;\&amp;a&#39; }
    }
    f()-&gt;();</code></pre>

<p>Here, when the &#39;\&amp;a&#39; in the eval is being compiled, f() is not currently being executed, so its &amp;a is not available for capture.</p>

</dd>
<dt id="&quot;%s&quot;-subroutine-&amp;%s-masks-earlier-declaration-in-same-%s"><a class="permalink" href="perldiag.html#%22%25s%22-subroutine-&amp;%25s-masks-earlier-declaration-in-same-%25s">#</a><a id="s-subroutine-s-masks-earlier-declaration-in-same-s"></a>&quot;%s&quot; subroutine &amp;%s masks earlier declaration in same %s</dt>
<dd>

<p>(W shadow) A &quot;my&quot; or &quot;state&quot; subroutine has been redeclared in the current scope or statement, effectively eliminating all access to the previous instance. This is almost always a typographical error. Note that the earlier subroutine will still exist until the end of the scope or until all closure references to it are destroyed.</p>

</dd>
<dt id="Subroutine-%s-redefined"><a class="permalink" href="perldiag.html#Subroutine-%25s-redefined">#</a><a id="Subroutine2"></a><a id="Subroutine-s-redefined"></a>Subroutine %s redefined</dt>
<dd>

<p>(W redefine) You redefined a subroutine. To suppress this warning, say</p>

<pre><code>    {
	no warnings &#39;redefine&#39;;
	eval &quot;sub name { ... }&quot;;
    }</code></pre>

</dd>
<dt id="Subroutine-&quot;%s&quot;-will-not-stay-shared"><a class="permalink" href="perldiag.html#Subroutine-%22%25s%22-will-not-stay-shared">#</a><a id="Subroutine3"></a><a id="Subroutine-s-will-not-stay-shared"></a>Subroutine &quot;%s&quot; will not stay shared</dt>
<dd>

<p>(W closure) An inner (nested) <i>named</i> subroutine is referencing a &quot;my&quot; subroutine defined in an outer named subroutine.</p>

<p>When the inner subroutine is called, it will see the value of the outer subroutine&#39;s lexical subroutine as it was before and during the *first* call to the outer subroutine; in this case, after the first call to the outer subroutine is complete, the inner and outer subroutines will no longer share a common value for the lexical subroutine. In other words, it will no longer be shared. This will especially make a difference if the lexical subroutines accesses lexical variables declared in its surrounding scope.</p>

<p>This problem can usually be solved by making the inner subroutine anonymous, using the <code>sub {}</code> syntax. When inner anonymous subs that reference lexical subroutines in outer subroutines are created, they are automatically rebound to the current values of such lexical subs.</p>

</dd>
<dt id="Substitution-loop"><a class="permalink" href="perldiag.html#Substitution-loop">#</a><a id="Substitution"></a>Substitution loop</dt>
<dd>

<p>(P) The substitution was looping infinitely. (Obviously, a substitution shouldn&#39;t iterate more times than there are characters of input, which is what happened.) See the discussion of substitution in <a href="perlop.html#Regexp-Quote-Like-Operators">&quot;Regexp Quote-Like Operators&quot; in perlop</a>.</p>

</dd>
<dt id="Substitution-pattern-not-terminated"><a class="permalink" href="perldiag.html#Substitution-pattern-not-terminated">#</a><a id="Substitution1"></a>Substitution pattern not terminated</dt>
<dd>

<p>(F) The lexer couldn&#39;t find the interior delimiter of an s/// or s{}{} construct. Remember that bracketing delimiters count nesting level. Missing the leading <code>$</code> from variable <code>$s</code> may cause this error.</p>

</dd>
<dt id="Substitution-replacement-not-terminated"><a class="permalink" href="perldiag.html#Substitution-replacement-not-terminated">#</a><a id="Substitution2"></a>Substitution replacement not terminated</dt>
<dd>

<p>(F) The lexer couldn&#39;t find the final delimiter of an s/// or s{}{} construct. Remember that bracketing delimiters count nesting level. Missing the leading <code>$</code> from variable <code>$s</code> may cause this error.</p>

</dd>
<dt id="substr-outside-of-string"><a class="permalink" href="perldiag.html#substr-outside-of-string">#</a><a id="substr"></a>substr outside of string</dt>
<dd>

<p>(W substr)(F) You tried to reference a substr() that pointed outside of a string. That is, the absolute value of the offset was larger than the length of the string. See <a href="perlfunc.html#substr">&quot;substr&quot; in perlfunc</a>. This warning is fatal if substr is used in an lvalue context (as the left hand side of an assignment or as a subroutine argument for example).</p>

</dd>
<dt id="sv_upgrade-from-type-%d-down-to-type-%d"><a class="permalink" href="perldiag.html#sv_upgrade-from-type-%25d-down-to-type-%25d">#</a><a id="sv_upgrade"></a><a id="sv_upgrade-from-type-d-down-to-type-d"></a>sv_upgrade from type %d down to type %d</dt>
<dd>

<p>(P) Perl tried to force the upgrade of an SV to a type which was actually inferior to its current type.</p>

</dd>
<dt id="Switch-(?(condition)...-contains-too-many-branches-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Switch-(?(condition)...-contains-too-many-branches-in-regex;-marked-by-in-m/%25s/">#</a><a id="Switch-(?(condition)...-contains-too-many-branches-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Switch"></a><a id="Switch-condition-...-contains-too-many-branches-in-regex-marked-by----HERE-in-m-s"></a>Switch (?(condition)... contains too many branches in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) A (?(condition)if-clause|else-clause) construct can have at most two branches (the if-clause and the else-clause). If you want one or both to contain alternation, such as using <code>this|that|other</code>, enclose it in clustering parentheses:</p>

<pre><code class="plaintext">(?(condition)(?:this|that|other)|else-clause)</code></pre>

<p>The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Switch-condition-not-recognized-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Switch-condition-not-recognized-in-regex;-marked-by-in-m/%25s/">#</a><a id="Switch-condition-not-recognized-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Switch1"></a><a id="Switch-condition-not-recognized-in-regex-marked-by----HERE-in-m-s"></a>Switch condition not recognized in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) The condition part of a (?(condition)if-clause|else-clause) construct is not known. The condition must be one of the following:</p>

<pre><code class="plaintext">(1) (2) ...        true if 1st, 2nd, etc., capture matched
(&lt;NAME&gt;) (&#39;NAME&#39;)  true if named capture matched
(?=...) (?&lt;=...)   true if subpattern matches
(?!...) (?&lt;!...)   true if subpattern fails to match
(?{ CODE })        true if code returns a true value
(R)                true if evaluating inside recursion
(R1) (R2) ...      true if directly inside capture group 1, 2, etc.
(R&amp;NAME)           true if directly inside named capture
(DEFINE)           always false; for defining named subpatterns</code></pre>

<p>The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Switch-(?(condition)...-not-terminated-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Switch-(?(condition)...-not-terminated-in-regex;-marked-by-in-m/%25s/">#</a><a id="Switch-(?(condition)...-not-terminated-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Switch2"></a><a id="Switch-condition-...-not-terminated-in-regex-marked-by----HERE-in-m-s"></a>Switch (?(condition)... not terminated in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You omitted to close a (?(condition)...) block somewhere in the pattern. Add a closing parenthesis in the appropriate position. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="switching-effective-%s-is-not-implemented"><a class="permalink" href="perldiag.html#switching-effective-%25s-is-not-implemented">#</a><a id="switching"></a><a id="switching-effective-s-is-not-implemented"></a>switching effective %s is not implemented</dt>
<dd>

<p>(F) While under the <code>use filetest</code> pragma, we cannot switch the real and effective uids or gids.</p>

</dd>
<dt id="syntax-error"><a class="permalink" href="perldiag.html#syntax-error">#</a><a id="syntax"></a>syntax error</dt>
<dd>

<p>(F) Probably means you had a syntax error. Common reasons include:</p>

<pre><code class="plaintext">A keyword is misspelled.
A semicolon is missing.
A comma is missing.
An opening or closing parenthesis is missing.
An opening or closing brace is missing.
A closing quote is missing.</code></pre>

<p>Often there will be another error message associated with the syntax error giving more information. (Sometimes it helps to turn on <b>-w</b>.) The error message itself often tells you where it was in the line when it decided to give up. Sometimes the actual error is several tokens before this, because Perl is good at understanding random input. Occasionally the line number may be misleading, and once in a blue moon the only way to figure out what&#39;s triggering the error is to call <code>perl -c</code> repeatedly, chopping away half the program each time to see if the error went away. Sort of the cybernetic version of <span style="white-space: nowrap;">20 questions</span>.</p>

</dd>
<dt id="syntax-error-at-line-%d:-&#39;%s&#39;-unexpected"><a class="permalink" href="perldiag.html#syntax-error-at-line-%25d:-&#39;%25s&#39;-unexpected">#</a><a id="syntax1"></a><a id="syntax-error-at-line-d:-s-unexpected"></a>syntax error at line %d: &#39;%s&#39; unexpected</dt>
<dd>

<p>(A) You&#39;ve accidentally run your script through the Bourne shell instead of Perl. Check the #! line, or manually feed your script into Perl yourself.</p>

</dd>
<dt id="syntax-error-in-file-%s-at-line-%d,-next-2-tokens-&quot;%s&quot;"><a class="permalink" href="perldiag.html#syntax-error-in-file-%25s-at-line-%25d,-next-2-tokens-%22%25s%22">#</a><a id="syntax2"></a><a id="syntax-error-in-file-s-at-line-d-next-2-tokens-s"></a>syntax error in file %s at line %d, next 2 tokens &quot;%s&quot;</dt>
<dd>

<p>(F) This error is likely to occur if you run a perl5 script through a perl4 interpreter, especially if the next 2 tokens are &quot;use strict&quot; or &quot;my $var&quot; or &quot;our $var&quot;.</p>

</dd>
<dt id="Syntax-error-in-(?[...])-in-regex;-marked-by-&lt;-HERE-in-m/%s/"><a class="permalink" href="perldiag.html#Syntax-error-in-(?%5B...%5D)-in-regex;-marked-by-%3C-HERE-in-m/%25s/">#</a><a id="Syntax"></a><a id="Syntax-error-in-...-in-regex-marked-by----HERE-in-m-s"></a>Syntax error in (?[...]) in regex; marked by &lt;-- HERE in m/%s/</dt>
<dd>

<p>(F) Perl could not figure out what you meant inside this construct; this notifies you that it is giving up trying.</p>

</dd>
<dt id="%s-syntax-OK"><a class="permalink" href="perldiag.html#%25s-syntax-OK">#</a><a id="s-syntax-OK"></a>%s syntax OK</dt>
<dd>

<p>(F) The final summary message when a <code>perl -c</code> succeeds.</p>

</dd>
<dt id="sysread()-on-closed-filehandle-%s"><a class="permalink" href="perldiag.html#sysread()-on-closed-filehandle-%25s">#</a><a id="sysread"></a><a id="sysread-on-closed-filehandle-s"></a>sysread() on closed filehandle %s</dt>
<dd>

<p>(W closed) You tried to read from a closed filehandle.</p>

</dd>
<dt id="sysread()-on-unopened-filehandle-%s"><a class="permalink" href="perldiag.html#sysread()-on-unopened-filehandle-%25s">#</a><a id="sysread1"></a><a id="sysread-on-unopened-filehandle-s"></a>sysread() on unopened filehandle %s</dt>
<dd>

<p>(W unopened) You tried to read from a filehandle that was never opened.</p>

</dd>
<dt id="System-V-%s-is-not-implemented-on-this-machine"><a class="permalink" href="perldiag.html#System-V-%25s-is-not-implemented-on-this-machine">#</a><a id="System"></a><a id="System-V-s-is-not-implemented-on-this-machine"></a>System V %s is not implemented on this machine</dt>
<dd>

<p>(F) You tried to do something with a function beginning with &quot;sem&quot;, &quot;shm&quot;, or &quot;msg&quot; but that System V IPC is not implemented in your machine. In some machines the functionality can exist but be unconfigured. Consult your system support.</p>

</dd>
<dt id="syswrite()-on-closed-filehandle-%s"><a class="permalink" href="perldiag.html#syswrite()-on-closed-filehandle-%25s">#</a><a id="syswrite"></a><a id="syswrite-on-closed-filehandle-s"></a>syswrite() on closed filehandle %s</dt>
<dd>

<p>(W closed) The filehandle you&#39;re writing to got itself closed sometime before now. Check your control flow.</p>

</dd>
<dt id="-T-and-B-not-implemented-on-filehandles"><a class="permalink" href="perldiag.html#-T-and-B-not-implemented-on-filehandles">#</a><a id="T-and--B-not-implemented-on-filehandles"></a><code>-T</code> and <code>-B</code> not implemented on filehandles</dt>
<dd>

<p>(F) Perl can&#39;t peek at the stdio buffer of filehandles when it doesn&#39;t know about your kind of stdio. You&#39;ll have to use a filename instead.</p>

</dd>
<dt id="Target-of-goto-is-too-deeply-nested"><a class="permalink" href="perldiag.html#Target-of-goto-is-too-deeply-nested">#</a><a id="Target"></a>Target of goto is too deeply nested</dt>
<dd>

<p>(F) You tried to use <code>goto</code> to reach a label that was too deeply nested for Perl to reach. Perl is doing you a favor by refusing.</p>

</dd>
<dt id="telldir()-attempted-on-invalid-dirhandle-%s"><a class="permalink" href="perldiag.html#telldir()-attempted-on-invalid-dirhandle-%25s">#</a><a id="telldir"></a><a id="telldir-attempted-on-invalid-dirhandle-s"></a>telldir() attempted on invalid dirhandle %s</dt>
<dd>

<p>(W io) The dirhandle you tried to telldir() is either closed or not really a dirhandle. Check your control flow.</p>

</dd>
<dt id="tell()-on-unopened-filehandle"><a class="permalink" href="perldiag.html#tell()-on-unopened-filehandle">#</a><a id="tell"></a><a id="tell-on-unopened-filehandle"></a>tell() on unopened filehandle</dt>
<dd>

<p>(W unopened) You tried to use the tell() function on a filehandle that was either never opened or has since been closed.</p>

</dd>
<dt id="The-crypt()-function-is-unimplemented-due-to-excessive-paranoia."><a class="permalink" href="perldiag.html#The-crypt()-function-is-unimplemented-due-to-excessive-paranoia.">#</a><a id="The1"></a><a id="The-crypt-function-is-unimplemented-due-to-excessive-paranoia"></a>The crypt() function is unimplemented due to excessive paranoia.</dt>
<dd>

<p>(F) Configure couldn&#39;t find the crypt() function on your machine, probably because your vendor didn&#39;t supply it, probably because they think the U.S. Government thinks it&#39;s a secret, or at least that they will continue to pretend that it is. And if you quote me on that, I will deny it.</p>

</dd>
<dt id="The-experimental-declared_refs-feature-is-not-enabled"><a class="permalink" href="perldiag.html#The-experimental-declared_refs-feature-is-not-enabled">#</a><a id="The2"></a>The experimental declared_refs feature is not enabled</dt>
<dd>

<p>(F) To declare references to variables, as in <code>my \%x</code>, you must first enable the feature:</p>

<pre><code>no warnings &quot;experimental::declared_refs&quot;;
use feature &quot;declared_refs&quot;;</code></pre>

</dd>
<dt id="The-%s-function-is-unimplemented"><a class="permalink" href="perldiag.html#The-%25s-function-is-unimplemented">#</a><a id="The3"></a><a id="The-s-function-is-unimplemented"></a>The %s function is unimplemented</dt>
<dd>

<p>(F) The function indicated isn&#39;t implemented on this architecture, according to the probings of Configure.</p>

</dd>
<dt id="The-private_use-feature-is-experimental"><a class="permalink" href="perldiag.html#The-private_use-feature-is-experimental">#</a><a id="The4"></a>The private_use feature is experimental</dt>
<dd>

<p>(S experimental::private_use) This feature is actually a hook for future use.</p>

</dd>
<dt id="The-regex_sets-feature-is-experimental"><a class="permalink" href="perldiag.html#The-regex_sets-feature-is-experimental">#</a><a id="The5"></a>The regex_sets feature is experimental</dt>
<dd>

<p>(S experimental::regex_sets) This warning is emitted if you use the syntax <span style="white-space: nowrap;"><code>(?[ ])</code></span> in a regular expression. The details of this feature are subject to change. If you want to use it, but know that in doing so you are taking the risk of using an experimental feature which may change in a future Perl version, you can do this to silence the warning:</p>

<pre><code>no warnings &quot;experimental::regex_sets&quot;;</code></pre>

</dd>
<dt id="The-signatures-feature-is-experimental"><a class="permalink" href="perldiag.html#The-signatures-feature-is-experimental">#</a><a id="The6"></a>The signatures feature is experimental</dt>
<dd>

<p>(S experimental::signatures) This warning is emitted if you unwrap a subroutine&#39;s arguments using a signature. Simply suppress the warning if you want to use the feature, but know that in doing so you are taking the risk of using an experimental feature which may change or be removed in a future Perl version:</p>

<pre><code>no warnings &quot;experimental::signatures&quot;;
use feature &quot;signatures&quot;;
sub foo ($left, $right) { ... }</code></pre>

</dd>
<dt id="The-stat-preceding-%s-wasn&#39;t-an-lstat"><a class="permalink" href="perldiag.html#The-stat-preceding-%25s-wasn&#39;t-an-lstat">#</a><a id="The7"></a><a id="The-stat-preceding-s-wasnt-an-lstat"></a>The stat preceding %s wasn&#39;t an lstat</dt>
<dd>

<p>(F) It makes no sense to test the current stat buffer for symbolic linkhood if the last stat that wrote to the stat buffer already went past the symlink to get to the real file. Use an actual filename instead.</p>

</dd>
<dt id="The-Unicode-property-wildcards-feature-is-experimental"><a class="permalink" href="perldiag.html#The-Unicode-property-wildcards-feature-is-experimental">#</a><a id="The8"></a>The Unicode property wildcards feature is experimental</dt>
<dd>

<p>(S experimental::uniprop_wildcards) This feature is experimental and its behavior may in any future release of perl. See <a href="perlunicode.html#Wildcards-in-Property-Values">&quot;Wildcards in Property Values&quot; in perlunicode</a>.</p>

</dd>
<dt id="The-&#39;unique&#39;-attribute-may-only-be-applied-to-&#39;our&#39;-variables"><a class="permalink" href="perldiag.html#The-&#39;unique&#39;-attribute-may-only-be-applied-to-&#39;our&#39;-variables">#</a><a id="The9"></a><a id="The-unique-attribute-may-only-be-applied-to-our-variables"></a>The &#39;unique&#39; attribute may only be applied to &#39;our&#39; variables</dt>
<dd>

<p>(F) This attribute was never supported on <code>my</code> or <code>sub</code> declarations.</p>

</dd>
<dt id="This-Perl-can&#39;t-reset-CRTL-environ-elements-(%s)"><a class="permalink" href="perldiag.html#This-Perl-can&#39;t-reset-CRTL-environ-elements-(%25s)">#</a><a id="This"></a><a id="This-Perl-cant-reset-CRTL-environ-elements-s"></a>This Perl can&#39;t reset CRTL environ elements (%s)</dt>
<dd>

</dd>
<dt id="This-Perl-can&#39;t-set-CRTL-environ-elements-(%s=%s)"><a class="permalink" href="perldiag.html#This-Perl-can&#39;t-set-CRTL-environ-elements-(%25s=%25s)">#</a><a id="This1"></a><a id="This-Perl-cant-set-CRTL-environ-elements-s-s"></a>This Perl can&#39;t set CRTL environ elements (%s=%s)</dt>
<dd>

<p>(W internal) Warnings peculiar to VMS. You tried to change or delete an element of the CRTL&#39;s internal environ array, but your copy of Perl wasn&#39;t built with a CRTL that contained the setenv() function. You&#39;ll need to rebuild Perl with a CRTL that does, or redefine <i>PERL_ENV_TABLES</i> (see <a href="perlvms.html">perlvms</a>) so that the environ array isn&#39;t the target of the change to %ENV which produced the warning.</p>

</dd>
<dt id="This-Perl-has-not-been-built-with-support-for-randomized-hash-key-traversal-but-something-called-Perl_hv_rand_set()."><a class="permalink" href="perldiag.html#This-Perl-has-not-been-built-with-support-for-randomized-hash-key-traversal-but-something-called-Perl_hv_rand_set().">#</a><a id="This2"></a><a id="This-Perl-has-not-been-built-with-support-for-randomized-hash-key-traversal-but-something-called-Perl_hv_rand_set"></a>This Perl has not been built with support for randomized hash key traversal but something called Perl_hv_rand_set().</dt>
<dd>

<p>(F) Something has attempted to use an internal API call which depends on Perl being compiled with the default support for randomized hash key traversal, but this Perl has been compiled without it. You should report this warning to the relevant upstream party, or recompile perl with default options.</p>

</dd>
<dt id="This-use-of-my()-in-false-conditional-is-no-longer-allowed"><a class="permalink" href="perldiag.html#This-use-of-my()-in-false-conditional-is-no-longer-allowed">#</a><a id="This3"></a><a id="This-use-of-my-in-false-conditional-is-no-longer-allowed"></a>This use of my() in false conditional is no longer allowed</dt>
<dd>

<p>(F) You used a declaration similar to <code>my $x if 0</code>. There has been a long-standing bug in Perl that causes a lexical variable not to be cleared at scope exit when its declaration includes a false conditional. Some people have exploited this bug to achieve a kind of static variable. Since we intend to fix this bug, we don&#39;t want people relying on this behavior. You can achieve a similar static effect by declaring the variable in a separate block outside the function, eg</p>

<pre><code>sub f { my $x if 0; return $x++ }</code></pre>

<p>becomes</p>

<pre><code>{ my $x; sub f { return $x++ } }</code></pre>

<p>Beginning with perl 5.10.0, you can also use <code>state</code> variables to have lexicals that are initialized only once (see <a href="feature.html">feature</a>):</p>

<pre><code>sub f { state $x; return $x++ }</code></pre>

<p>This use of <code>my()</code> in a false conditional was deprecated beginning in Perl 5.10 and became a fatal error in Perl 5.30.</p>

</dd>
<dt id="Timeout-waiting-for-another-thread-to-define-\p{%s}"><a class="permalink" href="perldiag.html#Timeout-waiting-for-another-thread-to-define-%5Cp%7B%25s%7D">#</a><a id="Timeout"></a><a id="Timeout-waiting-for-another-thread-to-define-p-s"></a>Timeout waiting for another thread to define \p{%s}</dt>
<dd>

<p>(F) The first time a user-defined property (<a href="perlunicode.html#User-Defined-Character-Properties">&quot;User-Defined Character Properties&quot; in perlunicode</a>) is used, its definition is looked up and converted into an internal form for more efficient handling in subsequent uses. There could be a race if two or more threads tried to do this processing nearly simultaneously. Instead, a critical section is created around this task, locking out all but one thread from doing it. This message indicates that the thread that is doing the conversion is taking an unexpectedly long time. The timeout exists solely to prevent deadlock; it&#39;s long enough that the system was likely thrashing and about to crash. There is no real remedy but rebooting.</p>

</dd>
<dt id="times-not-implemented"><a class="permalink" href="perldiag.html#times-not-implemented">#</a><a id="times"></a>times not implemented</dt>
<dd>

<p>(F) Your version of the C library apparently doesn&#39;t do times(). I suspect you&#39;re not running on Unix.</p>

</dd>
<dt id="&quot;-T&quot;-is-on-the-#!-line,-it-must-also-be-used-on-the-command-line"><a class="permalink" href="perldiag.html#%22-T%22-is-on-the-%23!-line,-it-must-also-be-used-on-the-command-line">#</a><a id="T-is-on-the-line-it-must-also-be-used-on-the-command-line"></a>&quot;-T&quot; is on the #! line, it must also be used on the command line</dt>
<dd>

<p>(X) The #! line (or local equivalent) in a Perl script contains the <b>-T</b> option (or the <b>-t</b> option), but Perl was not invoked with <b>-T</b> in its command line. This is an error because, by the time Perl discovers a <b>-T</b> in a script, it&#39;s too late to properly taint everything from the environment. So Perl gives up.</p>

<p>If the Perl script is being executed as a command using the #! mechanism (or its local equivalent), this error can usually be fixed by editing the #! line so that the <b>-%c</b> option is a part of Perl&#39;s first argument: e.g. change <code>perl -n -%c</code> to <code>perl -%c -n</code>.</p>

<p>If the Perl script is being executed as <code>perl scriptname</code>, then the <b>-%c</b> option must appear on the command line: <code>perl -%c scriptname</code>.</p>

</dd>
<dt id="To%s:-illegal-mapping-&#39;%s&#39;"><a class="permalink" href="perldiag.html#To%25s:-illegal-mapping-&#39;%25s&#39;">#</a><a id="To"></a><a id="To-s:-illegal-mapping-s"></a>To%s: illegal mapping &#39;%s&#39;</dt>
<dd>

<p>(F) You tried to define a customized To-mapping for lc(), lcfirst, uc(), or ucfirst() (or their string-inlined versions), but you specified an illegal mapping. See <a href="perlunicode.html#User-Defined-Character-Properties">&quot;User-Defined Character Properties&quot; in perlunicode</a>.</p>

</dd>
<dt id="Too-deeply-nested-()-groups"><a class="permalink" href="perldiag.html#Too-deeply-nested-()-groups">#</a><a id="Too"></a><a id="Too-deeply-nested--groups"></a>Too deeply nested ()-groups</dt>
<dd>

<p>(F) Your template contains ()-groups with a ridiculously deep nesting level.</p>

</dd>
<dt id="Too-few-args-to-syscall"><a class="permalink" href="perldiag.html#Too-few-args-to-syscall">#</a><a id="Too1"></a>Too few args to syscall</dt>
<dd>

<p>(F) There has to be at least one argument to syscall() to specify the system call to call, silly dilly.</p>

</dd>
<dt id="Too-few-arguments-for-subroutine-&#39;%s&#39;-(got-%d;-expected-%d)"><a class="permalink" href="perldiag.html#Too-few-arguments-for-subroutine-&#39;%25s&#39;-(got-%25d;-expected-%25d)">#</a><a id="Too2"></a><a id="Too-few-arguments-for-subroutine-s-got-d-expected-d"></a>Too few arguments for subroutine &#39;%s&#39; (got %d; expected %d)</dt>
<dd>

<p>(F) A subroutine using a signature fewer arguments than required by the signature. The caller of the subroutine is presumably at fault.</p>

<p>The message attempts to include the name of the called subroutine. If the subroutine has been aliased, the subroutine&#39;s original name will be shown, regardless of what name the caller used. It will also indicate the number of arguments given and the number expected.</p>

</dd>
<dt id="Too-few-arguments-for-subroutine-&#39;%s&#39;-(got-%d;-expected-at-least-%d)"><a class="permalink" href="perldiag.html#Too-few-arguments-for-subroutine-&#39;%25s&#39;-(got-%25d;-expected-at-least-%25d)">#</a><a id="Too3"></a><a id="Too-few-arguments-for-subroutine-s-got-d-expected-at-least-d"></a>Too few arguments for subroutine &#39;%s&#39; (got %d; expected at least %d)</dt>
<dd>

<p>Similar to the previous message but for subroutines that accept a variable number of arguments.</p>

</dd>
<dt id="Too-late-for-&quot;-%s&quot;-option"><a class="permalink" href="perldiag.html#Too-late-for-%22-%25s%22-option">#</a><a id="Too4"></a><a id="Too-late-for---s-option"></a>Too late for &quot;-%s&quot; option</dt>
<dd>

<p>(X) The #! line (or local equivalent) in a Perl script contains the <b>-M</b>, <b>-m</b> or <b>-C</b> option.</p>

<p>In the case of <b>-M</b> and <b>-m</b>, this is an error because those options are not intended for use inside scripts. Use the <code>use</code> pragma instead.</p>

<p>The <b>-C</b> option only works if it is specified on the command line as well (with the same sequence of letters or numbers following). Either specify this option on the command line, or, if your system supports it, make your script executable and run it directly instead of passing it to perl.</p>

</dd>
<dt id="Too-late-to-run-%s-block"><a class="permalink" href="perldiag.html#Too-late-to-run-%25s-block">#</a><a id="Too5"></a><a id="Too-late-to-run-s-block"></a>Too late to run %s block</dt>
<dd>

<p>(W void) A CHECK or INIT block is being defined during run time proper, when the opportunity to run them has already passed. Perhaps you are loading a file with <code>require</code> or <code>do</code> when you should be using <code>use</code> instead. Or perhaps you should put the <code>require</code> or <code>do</code> inside a BEGIN block.</p>

</dd>
<dt id="Too-many-args-to-syscall"><a class="permalink" href="perldiag.html#Too-many-args-to-syscall">#</a><a id="Too6"></a>Too many args to syscall</dt>
<dd>

<p>(F) Perl supports a maximum of only 14 args to syscall().</p>

</dd>
<dt id="Too-many-arguments-for-%s"><a class="permalink" href="perldiag.html#Too-many-arguments-for-%25s">#</a><a id="Too7"></a><a id="Too-many-arguments-for-s"></a>Too many arguments for %s</dt>
<dd>

<p>(F) The function requires fewer arguments than you specified.</p>

</dd>
<dt id="Too-many-arguments-for-subroutine-&#39;%s&#39;-(got-%d;-expected-%d)"><a class="permalink" href="perldiag.html#Too-many-arguments-for-subroutine-&#39;%25s&#39;-(got-%25d;-expected-%25d)">#</a><a id="Too8"></a><a id="Too-many-arguments-for-subroutine-s-got-d-expected-d"></a>Too many arguments for subroutine &#39;%s&#39; (got %d; expected %d)</dt>
<dd>

<p>(F) A subroutine using a signature received more arguments than permitted by the signature. The caller of the subroutine is presumably at fault.</p>

<p>The message attempts to include the name of the called subroutine. If the subroutine has been aliased, the subroutine&#39;s original name will be shown, regardless of what name the caller used. It will also indicate the number of arguments given and the number expected.</p>

</dd>
<dt id="Too-many-arguments-for-subroutine-&#39;%s&#39;-(got-%d;-expected-at-most-%d)"><a class="permalink" href="perldiag.html#Too-many-arguments-for-subroutine-&#39;%25s&#39;-(got-%25d;-expected-at-most-%25d)">#</a><a id="Too9"></a><a id="Too-many-arguments-for-subroutine-s-got-d-expected-at-most-d"></a>Too many arguments for subroutine &#39;%s&#39; (got %d; expected at most %d)</dt>
<dd>

<p>Similar to the previous message but for subroutines that accept a variable number of arguments.</p>

</dd>
<dt id="Too-many-nested-open-parens-in-regex;-marked-by-&lt;-HERE-in-m/%s/"><a class="permalink" href="perldiag.html#Too-many-nested-open-parens-in-regex;-marked-by-%3C-HERE-in-m/%25s/">#</a><a id="Too10"></a><a id="Too-many-nested-open-parens-in-regex-marked-by----HERE-in-m-s"></a>Too many nested open parens in regex; marked by &lt;-- HERE in m/%s/</dt>
<dd>

<p>(F) You have exceeded the number of open <code>&quot;(&quot;</code> parentheses that haven&#39;t been matched by corresponding closing ones. This limit prevents eating up too much memory. It is initially set to 1000, but may be changed by setting <code>${^RE_COMPILE_RECURSION_LIMIT}</code> to some other value. This may need to be done in a BEGIN block before the regular expression pattern is compiled.</p>

</dd>
<dt id="Too-many-)&#39;s"><a class="permalink" href="perldiag.html#Too-many-)&#39;s">#</a><a id="Too11"></a><a id="Too-many-s"></a>Too many )&#39;s</dt>
<dd>

<p>(A) You&#39;ve accidentally run your script through <b>csh</b> instead of Perl. Check the #! line, or manually feed your script into Perl yourself.</p>

</dd>
<dt id="Too-many-(&#39;s"><a class="permalink" href="perldiag.html#Too-many-(&#39;s">#</a><a id="Too12"></a><a id="Too-many-s1"></a>Too many (&#39;s</dt>
<dd>

<p>(A) You&#39;ve accidentally run your script through <b>csh</b> instead of Perl. Check the #! line, or manually feed your script into Perl yourself.</p>

</dd>
<dt id="Trailing-\-in-regex-m/%s/"><a class="permalink" href="perldiag.html#Trailing-%5C-in-regex-m/%25s/">#</a><a id="Trailing"></a><a id="Trailing-in-regex-m-s"></a>Trailing \ in regex m/%s/</dt>
<dd>

<p>(F) The regular expression ends with an unbackslashed backslash. Backslash it. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Transliteration-pattern-not-terminated"><a class="permalink" href="perldiag.html#Transliteration-pattern-not-terminated">#</a><a id="Transliteration"></a>Transliteration pattern not terminated</dt>
<dd>

<p>(F) The lexer couldn&#39;t find the interior delimiter of a tr/// or tr[][] or y/// or y[][] construct. Missing the leading <code>$</code> from variables <code>$tr</code> or <code>$y</code> may cause this error.</p>

</dd>
<dt id="Transliteration-replacement-not-terminated"><a class="permalink" href="perldiag.html#Transliteration-replacement-not-terminated">#</a><a id="Transliteration1"></a>Transliteration replacement not terminated</dt>
<dd>

<p>(F) The lexer couldn&#39;t find the final delimiter of a tr///, tr[][], y/// or y[][] construct.</p>

</dd>
<dt id="&#39;%s&#39;-trapped-by-operation-mask"><a class="permalink" href="perldiag.html#&#39;%25s&#39;-trapped-by-operation-mask">#</a><a id="s-trapped-by-operation-mask"></a>&#39;%s&#39; trapped by operation mask</dt>
<dd>

<p>(F) You tried to use an operator from a Safe compartment in which it&#39;s disallowed. See <a href="Safe.html">Safe</a>.</p>

</dd>
<dt id="truncate-not-implemented"><a class="permalink" href="perldiag.html#truncate-not-implemented">#</a><a id="truncate"></a>truncate not implemented</dt>
<dd>

<p>(F) Your machine doesn&#39;t implement a file truncation mechanism that Configure knows about.</p>

</dd>
<dt id="try/catch-is-experimental"><a class="permalink" href="perldiag.html#try/catch-is-experimental">#</a><a id="try"></a><a id="try-catch-is-experimental"></a>try/catch is experimental</dt>
<dd>

<p>(S experimental::try) This warning is emitted if you use the <code>try</code> and <code>catch</code> syntax. This syntax is currently experimental and its behaviour may change in future releases of Perl.</p>

</dd>
<dt id="Type-of-arg-%d-to-&amp;CORE::%s-must-be-%s"><a class="permalink" href="perldiag.html#Type-of-arg-%25d-to-&amp;CORE::%25s-must-be-%25s">#</a><a id="Type"></a><a id="Type-of-arg-d-to-CORE::-s-must-be-s"></a>Type of arg %d to &amp;CORE::%s must be %s</dt>
<dd>

<p>(F) The subroutine in question in the CORE package requires its argument to be a hard reference to data of the specified type. Overloading is ignored, so a reference to an object that is not the specified type, but nonetheless has overloading to handle it, will still not be accepted.</p>

</dd>
<dt id="Type-of-arg-%d-to-%s-must-be-%s-(not-%s)"><a class="permalink" href="perldiag.html#Type-of-arg-%25d-to-%25s-must-be-%25s-(not-%25s)">#</a><a id="Type1"></a><a id="Type-of-arg-d-to-s-must-be-s-not-s"></a>Type of arg %d to %s must be %s (not %s)</dt>
<dd>

<p>(F) This function requires the argument in that position to be of a certain type. Arrays must be @NAME or <code>@{EXPR}</code>. Hashes must be %NAME or <code>%{EXPR}</code>. No implicit dereferencing is allowed--use the {EXPR} forms as an explicit dereference. See <a href="perlref.html">perlref</a>.</p>

</dd>
<dt id="umask-not-implemented"><a class="permalink" href="perldiag.html#umask-not-implemented">#</a><a id="umask"></a>umask not implemented</dt>
<dd>

<p>(F) Your machine doesn&#39;t implement the umask function and you tried to use it to restrict permissions for yourself (EXPR &amp; 0700).</p>

</dd>
<dt id="Unbalanced-context:-%d-more-PUSHes-than-POPs"><a class="permalink" href="perldiag.html#Unbalanced-context:-%25d-more-PUSHes-than-POPs">#</a><a id="Unbalanced"></a><a id="Unbalanced-context:-d-more-PUSHes-than-POPs"></a>Unbalanced context: %d more PUSHes than POPs</dt>
<dd>

<p>(S internal) The exit code detected an internal inconsistency in how many execution contexts were entered and left.</p>

</dd>
<dt id="Unbalanced-saves:-%d-more-saves-than-restores"><a class="permalink" href="perldiag.html#Unbalanced-saves:-%25d-more-saves-than-restores">#</a><a id="Unbalanced1"></a><a id="Unbalanced-saves:-d-more-saves-than-restores"></a>Unbalanced saves: %d more saves than restores</dt>
<dd>

<p>(S internal) The exit code detected an internal inconsistency in how many values were temporarily localized.</p>

</dd>
<dt id="Unbalanced-scopes:-%d-more-ENTERs-than-LEAVEs"><a class="permalink" href="perldiag.html#Unbalanced-scopes:-%25d-more-ENTERs-than-LEAVEs">#</a><a id="Unbalanced2"></a><a id="Unbalanced-scopes:-d-more-ENTERs-than-LEAVEs"></a>Unbalanced scopes: %d more ENTERs than LEAVEs</dt>
<dd>

<p>(S internal) The exit code detected an internal inconsistency in how many blocks were entered and left.</p>

</dd>
<dt id="Unbalanced-string-table-refcount:-(%d)-for-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Unbalanced-string-table-refcount:-(%25d)-for-%22%25s%22">#</a><a id="Unbalanced3"></a><a id="Unbalanced-string-table-refcount:-d-for-s"></a>Unbalanced string table refcount: (%d) for &quot;%s&quot;</dt>
<dd>

<p>(S internal) On exit, Perl found some strings remaining in the shared string table used for copy on write and for hash keys. The entries should have been freed, so this indicates a bug somewhere.</p>

</dd>
<dt id="Unbalanced-tmps:-%d-more-allocs-than-frees"><a class="permalink" href="perldiag.html#Unbalanced-tmps:-%25d-more-allocs-than-frees">#</a><a id="Unbalanced4"></a><a id="Unbalanced-tmps:-d-more-allocs-than-frees"></a>Unbalanced tmps: %d more allocs than frees</dt>
<dd>

<p>(S internal) The exit code detected an internal inconsistency in how many mortal scalars were allocated and freed.</p>

</dd>
<dt id="Undefined-format-&quot;%s&quot;-called"><a class="permalink" href="perldiag.html#Undefined-format-%22%25s%22-called">#</a><a id="Undefined"></a><a id="Undefined-format-s-called"></a>Undefined format &quot;%s&quot; called</dt>
<dd>

<p>(F) The format indicated doesn&#39;t seem to exist. Perhaps it&#39;s really in another package? See <a href="perlform.html">perlform</a>.</p>

</dd>
<dt id="Undefined-sort-subroutine-&quot;%s&quot;-called"><a class="permalink" href="perldiag.html#Undefined-sort-subroutine-%22%25s%22-called">#</a><a id="Undefined1"></a><a id="Undefined-sort-subroutine-s-called"></a>Undefined sort subroutine &quot;%s&quot; called</dt>
<dd>

<p>(F) The sort comparison routine specified doesn&#39;t seem to exist. Perhaps it&#39;s in a different package? See <a href="perlfunc.html#sort">&quot;sort&quot; in perlfunc</a>.</p>

</dd>
<dt id="Undefined-subroutine-&amp;%s-called"><a class="permalink" href="perldiag.html#Undefined-subroutine-&amp;%25s-called">#</a><a id="Undefined2"></a><a id="Undefined-subroutine-s-called"></a>Undefined subroutine &amp;%s called</dt>
<dd>

<p>(F) The subroutine indicated hasn&#39;t been defined, or if it was, it has since been undefined.</p>

</dd>
<dt id="Undefined-subroutine-called"><a class="permalink" href="perldiag.html#Undefined-subroutine-called">#</a><a id="Undefined3"></a>Undefined subroutine called</dt>
<dd>

<p>(F) The anonymous subroutine you&#39;re trying to call hasn&#39;t been defined, or if it was, it has since been undefined.</p>

</dd>
<dt id="Undefined-subroutine-in-sort"><a class="permalink" href="perldiag.html#Undefined-subroutine-in-sort">#</a><a id="Undefined4"></a>Undefined subroutine in sort</dt>
<dd>

<p>(F) The sort comparison routine specified is declared but doesn&#39;t seem to have been defined yet. See <a href="perlfunc.html#sort">&quot;sort&quot; in perlfunc</a>.</p>

</dd>
<dt id="Undefined-top-format-&quot;%s&quot;-called"><a class="permalink" href="perldiag.html#Undefined-top-format-%22%25s%22-called">#</a><a id="Undefined5"></a><a id="Undefined-top-format-s-called"></a>Undefined top format &quot;%s&quot; called</dt>
<dd>

<p>(F) The format indicated doesn&#39;t seem to exist. Perhaps it&#39;s really in another package? See <a href="perlform.html">perlform</a>.</p>

</dd>
<dt id="Undefined-value-assigned-to-typeglob"><a class="permalink" href="perldiag.html#Undefined-value-assigned-to-typeglob">#</a><a id="Undefined6"></a>Undefined value assigned to typeglob</dt>
<dd>

<p>(W misc) An undefined value was assigned to a typeglob, a la <code>*foo = undef</code>. This does nothing. It&#39;s possible that you really mean <code>undef *foo</code>.</p>

</dd>
<dt id="%s:-Undefined-variable"><a class="permalink" href="perldiag.html#%25s:-Undefined-variable">#</a><a id="s:-Undefined-variable"></a>%s: Undefined variable</dt>
<dd>

<p>(A) You&#39;ve accidentally run your script through <b>csh</b> instead of Perl. Check the #! line, or manually feed your script into Perl yourself.</p>

</dd>
<dt id="Unescaped-left-brace-in-regex-is-illegal-here-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Unescaped-left-brace-in-regex-is-illegal-here-in-regex;-marked-by-in-m/%25s/">#</a><a id="Unescaped-left-brace-in-regex-is-illegal-here-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Unescaped"></a><a id="Unescaped-left-brace-in-regex-is-illegal-here-in-regex-marked-by----HERE-in-m-s"></a>Unescaped left brace in regex is illegal here in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) The simple rule to remember, if you want to match a literal <code>&quot;{&quot;</code> character (U+007B <code>LEFT CURLY BRACKET</code>) in a regular expression pattern, is to escape each literal instance of it in some way. Generally easiest is to precede it with a backslash, like <code>&quot;\{&quot;</code> or enclose it in square brackets (<code>&quot;[{]&quot;</code>). If the pattern delimiters are also braces, any matching right brace (<code>&quot;}&quot;</code>) should also be escaped to avoid confusing the parser, for example,</p>

<pre><code class="plaintext">qr{abc\{def\}ghi}</code></pre>

<p>Forcing literal <code>&quot;{&quot;</code> characters to be escaped enables the Perl language to be extended in various ways in future releases. To avoid needlessly breaking existing code, the restriction is not enforced in contexts where there are unlikely to ever be extensions that could conflict with the use there of <code>&quot;{&quot;</code> as a literal. Those that are not potentially ambiguous do not warn; those that are do raise a non-deprecation warning.</p>

<p>The contexts where no warnings or errors are raised are:</p>

<ul>

<li><p>as the first character in a pattern, or following <code>&quot;^&quot;</code> indicating to anchor the match to the beginning of a line.</p>

</li>
<li><p>as the first character following a <code>&quot;|&quot;</code> indicating alternation.</p>

</li>
<li><p>as the first character in a parenthesized grouping like</p>

<pre><code class="plaintext">/foo({bar)/
/foo(?:{bar)/</code></pre>

</li>
<li><p>as the first character following a quantifier</p>

<pre><code class="plaintext">/\s*{/</code></pre>

</li>
</ul>

</dd>
<dt id="Unescaped-left-brace-in-regex-is-passed-through-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Unescaped-left-brace-in-regex-is-passed-through-in-regex;-marked-by-in-m/%25s/">#</a><a id="Unescaped-left-brace-in-regex-is-passed-through-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Unescaped1"></a><a id="Unescaped-left-brace-in-regex-is-passed-through-in-regex-marked-by----HERE-in-m-s"></a>Unescaped left brace in regex is passed through in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp) The simple rule to remember, if you want to match a literal <code>&quot;{&quot;</code> character (U+007B <code>LEFT CURLY BRACKET</code>) in a regular expression pattern, is to escape each literal instance of it in some way. Generally easiest is to precede it with a backslash, like <code>&quot;\{&quot;</code> or enclose it in square brackets (<code>&quot;[{]&quot;</code>). If the pattern delimiters are also braces, any matching right brace (<code>&quot;}&quot;</code>) should also be escaped to avoid confusing the parser, for example,</p>

<pre><code class="plaintext">qr{abc\{def\}ghi}</code></pre>

<p>Forcing literal <code>&quot;{&quot;</code> characters to be escaped enables the Perl language to be extended in various ways in future releases. To avoid needlessly breaking existing code, the restriction is not enforced in contexts where there are unlikely to ever be extensions that could conflict with the use there of <code>&quot;{&quot;</code> as a literal. Those that are not potentially ambiguous do not warn; those that are raise this warning. This makes sure that an inadvertent typo doesn&#39;t silently cause the pattern to compile to something unintended.</p>

<p>The contexts where no warnings or errors are raised are:</p>

<ul>

<li><p>as the first character in a pattern, or following <code>&quot;^&quot;</code> indicating to anchor the match to the beginning of a line.</p>

</li>
<li><p>as the first character following a <code>&quot;|&quot;</code> indicating alternation.</p>

</li>
<li><p>as the first character in a parenthesized grouping like</p>

<pre><code class="plaintext">/foo({bar)/
/foo(?:{bar)/</code></pre>

</li>
<li><p>as the first character following a quantifier</p>

<pre><code class="plaintext">/\s*{/</code></pre>

</li>
</ul>

</dd>
<dt id="Unescaped-literal-&#39;%c&#39;-in-regex;-marked-by-&lt;-HERE-in-m/%s/"><a class="permalink" href="perldiag.html#Unescaped-literal-&#39;%25c&#39;-in-regex;-marked-by-%3C-HERE-in-m/%25s/">#</a><a id="Unescaped2"></a><a id="Unescaped-literal-c-in-regex-marked-by----HERE-in-m-s"></a>Unescaped literal &#39;%c&#39; in regex; marked by &lt;-- HERE in m/%s/</dt>
<dd>

<p>(W regexp) (only under <code><span style="white-space: nowrap;">use re &#39;strict&#39;</span></code>)</p>

<p>Within the scope of <code><span style="white-space: nowrap;">use re &#39;strict&#39;</span></code> in a regular expression pattern, you included an unescaped <code>}</code> or <code>]</code> which was interpreted literally. These two characters are sometimes metacharacters, and sometimes literals, depending on what precedes them in the pattern. This is unlike the similar <code>)</code> which is always a metacharacter unless escaped.</p>

<p>This action at a distance, perhaps a large distance, can lead to Perl silently misinterpreting what you meant, so when you specify that you want extra checking by <code><span style="white-space: nowrap;">use re &#39;strict&#39;</span></code>, this warning is generated. If you meant the character as a literal, simply confirm that to Perl by preceding the character with a backslash, or make it into a bracketed character class (like <code>[}]</code>). If you meant it as closing a corresponding <code>[</code> or <code>{</code>, you&#39;ll need to look back through the pattern to find out why that isn&#39;t happening.</p>

</dd>
<dt id="unexec-of-%s-into-%s-failed!"><a class="permalink" href="perldiag.html#unexec-of-%25s-into-%25s-failed!">#</a><a id="unexec"></a><a id="unexec-of-s-into-s-failed"></a>unexec of %s into %s failed!</dt>
<dd>

<p>(F) The unexec() routine failed for some reason. See your local FSF representative, who probably put it there in the first place.</p>

</dd>
<dt id="Unexpected-binary-operator-&#39;%c&#39;-with-no-preceding-operand-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Unexpected-binary-operator-&#39;%25c&#39;-with-no-preceding-operand-in-regex;-marked-by-in-m/%25s/">#</a><a id="Unexpected-binary-operator-&#39;%c&#39;-with-no-preceding-operand-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Unexpected"></a><a id="Unexpected-binary-operator-c-with-no-preceding-operand-in-regex-marked-by----HERE-in-m-s"></a>Unexpected binary operator &#39;%c&#39; with no preceding operand in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You had something like this:</p>

<pre><code class="plaintext">(?[ | \p{Digit} ])</code></pre>

<p>where the <code>&quot;|&quot;</code> is a binary operator with an operand on the right, but no operand on the left.</p>

</dd>
<dt id="Unexpected-character-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Unexpected-character-in-regex;-marked-by-in-m/%25s/">#</a><a id="Unexpected-character-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Unexpected1"></a><a id="Unexpected-character-in-regex-marked-by----HERE-in-m-s"></a>Unexpected character in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You had something like this:</p>

<pre><code class="plaintext">(?[ z ])</code></pre>

<p>Within <code>(?[ ])</code>, no literal characters are allowed unless they are within an inner pair of square brackets, like</p>

<pre><code class="plaintext">(?[ [ z ] ])</code></pre>

<p>Another possibility is that you forgot a backslash. Perl isn&#39;t smart enough to figure out what you really meant.</p>

</dd>
<dt id="Unexpected-constant-lvalue-entersub-entry-via-type/targ-%d:%d"><a class="permalink" href="perldiag.html#Unexpected-constant-lvalue-entersub-entry-via-type/targ-%25d:%25d">#</a><a id="Unexpected2"></a><a id="Unexpected-constant-lvalue-entersub-entry-via-type-targ-d:-d"></a>Unexpected constant lvalue entersub entry via type/targ %d:%d</dt>
<dd>

<p>(P) When compiling a subroutine call in lvalue context, Perl failed an internal consistency check. It encountered a malformed op tree.</p>

</dd>
<dt id="Unexpected-exit-%u"><a class="permalink" href="perldiag.html#Unexpected-exit-%25u">#</a><a id="Unexpected3"></a><a id="Unexpected-exit-u"></a>Unexpected exit %u</dt>
<dd>

<p>(S) exit() was called or the script otherwise finished gracefully when <code>PERL_EXIT_WARN</code> was set in <code>PL_exit_flags</code>.</p>

</dd>
<dt id="Unexpected-exit-failure-%d"><a class="permalink" href="perldiag.html#Unexpected-exit-failure-%25d">#</a><a id="Unexpected4"></a><a id="Unexpected-exit-failure-d"></a>Unexpected exit failure %d</dt>
<dd>

<p>(S) An uncaught die() was called when <code>PERL_EXIT_WARN</code> was set in <code>PL_exit_flags</code>.</p>

</dd>
<dt id="Unexpected-&#39;)&#39;-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Unexpected-&#39;)&#39;-in-regex;-marked-by-in-m/%25s/">#</a><a id="Unexpected-&#39;)&#39;-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Unexpected5"></a><a id="Unexpected-in-regex-marked-by----HERE-in-m-s"></a>Unexpected &#39;)&#39; in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You had something like this:</p>

<pre><code class="plaintext">(?[ ( \p{Digit} + ) ])</code></pre>

<p>The <code>&quot;)&quot;</code> is out-of-place. Something apparently was supposed to be combined with the digits, or the <code>&quot;+&quot;</code> shouldn&#39;t be there, or something like that. Perl can&#39;t figure out what was intended.</p>

</dd>
<dt id="Unexpected-&#39;]&#39;-with-no-following-&#39;)&#39;-in-(?[...-in-regex;-marked-by-&lt;-HERE-in-m/%s/"><a class="permalink" href="perldiag.html#Unexpected-&#39;%5D&#39;-with-no-following-&#39;)&#39;-in-(?%5B...-in-regex;-marked-by-%3C-HERE-in-m/%25s/">#</a><a id="Unexpected6"></a><a id="Unexpected-with-no-following-in-...-in-regex-marked-by----HERE-in-m-s"></a>Unexpected &#39;]&#39; with no following &#39;)&#39; in (?[... in regex; marked by &lt;-- HERE in m/%s/</dt>
<dd>

<p>(F) While parsing an extended character class a &#39;]&#39; character was encountered at a point in the definition where the only legal use of &#39;]&#39; is to close the character class definition as part of a &#39;])&#39;, you may have forgotten the close paren, or otherwise confused the parser.</p>

</dd>
<dt id="Unexpected-&#39;(&#39;-with-no-preceding-operator-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Unexpected-&#39;(&#39;-with-no-preceding-operator-in-regex;-marked-by-in-m/%25s/">#</a><a id="Unexpected-&#39;(&#39;-with-no-preceding-operator-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Unexpected7"></a><a id="Unexpected-with-no-preceding-operator-in-regex-marked-by----HERE-in-m-s"></a>Unexpected &#39;(&#39; with no preceding operator in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You had something like this:</p>

<pre><code class="plaintext">(?[ \p{Digit} ( \p{Lao} + \p{Thai} ) ])</code></pre>

<p>There should be an operator before the <code>&quot;(&quot;</code>, as there&#39;s no indication as to how the digits are to be combined with the characters in the Lao and Thai scripts.</p>

</dd>
<dt id="Unicode-non-character-U+%X-is-not-recommended-for-open-interchange"><a class="permalink" href="perldiag.html#Unicode-non-character-U+%25X-is-not-recommended-for-open-interchange">#</a><a id="Unicode"></a><a id="Unicode-non-character-U-X-is-not-recommended-for-open-interchange"></a>Unicode non-character U+%X is not recommended for open interchange</dt>
<dd>

<p>(S nonchar) Certain codepoints, such as U+FFFE and U+FFFF, are defined by the Unicode standard to be non-characters. Those are legal codepoints, but are reserved for internal use; so, applications shouldn&#39;t attempt to exchange them. An application may not be expecting any of these characters at all, and receiving them may lead to bugs. If you know what you are doing you can turn off this warning by <code>no warnings &#39;nonchar&#39;;</code>.</p>

<p>This is not really a &quot;severe&quot; error, but it is supposed to be raised by default even if warnings are not enabled, and currently the only way to do that in Perl is to mark it as serious.</p>

</dd>
<dt id="Unicode-property-wildcard-not-terminated"><a class="permalink" href="perldiag.html#Unicode-property-wildcard-not-terminated">#</a><a id="Unicode1"></a>Unicode property wildcard not terminated</dt>
<dd>

<p>(F) A Unicode property wildcard looks like a delimited regular expression pattern (all within the braces of the enclosing <code>\p{...}</code>. The closing delimtter to match the opening one was not found. If the opening one is escaped by preceding it with a backslash, the closing one must also be so escaped.</p>

</dd>
<dt id="Unicode-string-properties-are-not-implemented-in-(?[...])-in-regex;-marked-by-&lt;-HERE-in-m/%s/"><a class="permalink" href="perldiag.html#Unicode-string-properties-are-not-implemented-in-(?%5B...%5D)-in-regex;-marked-by-%3C-HERE-in-m/%25s/">#</a><a id="Unicode2"></a><a id="Unicode-string-properties-are-not-implemented-in-...-in-regex-marked-by----HERE-in-m-s"></a>Unicode string properties are not implemented in (?[...]) in regex; marked by &lt;-- HERE in m/%s/</dt>
<dd>

<p>(F) A Unicode string property is one which expands to a sequence of multiple characters. An example is <code>\p{name=KATAKANA LETTER AINU P}</code>, which is comprised of the sequence <code>\N{KATAKANA LETTER SMALL H}</code> followed by <code>\N{COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK}</code>. Extended character classes, <code>(?[...])</code> currently cannot handle these.</p>

</dd>
<dt id="Unicode-surrogate-U+%X-is-illegal-in-UTF-8"><a class="permalink" href="perldiag.html#Unicode-surrogate-U+%25X-is-illegal-in-UTF-8">#</a><a id="Unicode3"></a><a id="Unicode-surrogate-U-X-is-illegal-in-UTF-8"></a>Unicode surrogate U+%X is illegal in UTF-8</dt>
<dd>

<p>(S surrogate) You had a UTF-16 surrogate in a context where they are not considered acceptable. These code points, between U+D800 and U+DFFF (inclusive), are used by Unicode only for UTF-16. However, Perl internally allows all unsigned integer code points (up to the size limit available on your platform), including surrogates. But these can cause problems when being input or output, which is likely where this message came from. If you really really know what you are doing you can turn off this warning by <code>no warnings &#39;surrogate&#39;;</code>.</p>

</dd>
<dt id="Unknown-charname-&#39;%s&#39;"><a class="permalink" href="perldiag.html#Unknown-charname-&#39;%25s&#39;">#</a><a id="Unknown"></a><a id="Unknown-charname-s"></a>Unknown charname &#39;%s&#39;</dt>
<dd>

<p>(F) The name you used inside <code>\N{}</code> is unknown to Perl. Check the spelling. You can say <code>use charnames &quot;:loose&quot;</code> to not have to be so precise about spaces, hyphens, and capitalization on standard Unicode names. (Any custom aliases that have been created must be specified exactly, regardless of whether <code>:loose</code> is used or not.) This error may also happen if the <code>\N{}</code> is not in the scope of the corresponding <code><span style="white-space: nowrap;">use charnames</span></code>.</p>

</dd>
<dt id="Unknown-&#39;(*...)&#39;-construct-&#39;%s&#39;-in-regex;-marked-by-&lt;-HERE-in-m/%s/"><a class="permalink" href="perldiag.html#Unknown-&#39;(*...)&#39;-construct-&#39;%25s&#39;-in-regex;-marked-by-%3C-HERE-in-m/%25s/">#</a><a id="Unknown1"></a><a id="Unknown-...-construct-s-in-regex-marked-by----HERE-in-m-s"></a>Unknown &#39;(*...)&#39; construct &#39;%s&#39; in regex; marked by &lt;-- HERE in m/%s/</dt>
<dd>

<p>(F) The <code>(*</code> was followed by something that the regular expression compiler does not recognize. Check your spelling.</p>

</dd>
<dt id="Unknown-error"><a class="permalink" href="perldiag.html#Unknown-error">#</a><a id="Unknown2"></a>Unknown error</dt>
<dd>

<p>(P) Perl was about to print an error message in <code>$@</code>, but the <code>$@</code> variable did not exist, even after an attempt to create it.</p>

</dd>
<dt id="Unknown-locale-category-%d;-can&#39;t-set-it-to-%s"><a class="permalink" href="perldiag.html#Unknown-locale-category-%25d;-can&#39;t-set-it-to-%25s">#</a><a id="Unknown3"></a><a id="Unknown-locale-category-d-cant-set-it-to-s"></a>Unknown locale category %d; can&#39;t set it to %s</dt>
<dd>

<p>(W locale) You used a locale category that perl doesn&#39;t recognize, so it cannot carry out your request. Check that you are using a valid category. If so, see <a href="perllocale.html#Multi-threaded">&quot;Multi-threaded&quot; in perllocale</a> for advice on reporting this as a bug, and for modifying perl locally to accommodate your needs.</p>

</dd>
<dt id="Unknown-open()-mode-&#39;%s&#39;"><a class="permalink" href="perldiag.html#Unknown-open()-mode-&#39;%25s&#39;">#</a><a id="Unknown4"></a><a id="Unknown-open-mode-s"></a>Unknown open() mode &#39;%s&#39;</dt>
<dd>

<p>(F) The second argument of 3-argument open() is not among the list of valid modes: <code>&lt;</code>, <code>&gt;</code>, <code>&gt;&gt;</code>, <code>+&lt;</code>, <code>+&gt;</code>, <code>+&gt;&gt;</code>, <code>-|</code>, <code>|-</code>, <code>&lt;&amp;</code>, <code>&gt;&amp;</code>.</p>

</dd>
<dt id="Unknown-PerlIO-layer-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Unknown-PerlIO-layer-%22%25s%22">#</a><a id="Unknown5"></a><a id="Unknown-PerlIO-layer-s"></a>Unknown PerlIO layer &quot;%s&quot;</dt>
<dd>

<p>(W layer) An attempt was made to push an unknown layer onto the Perl I/O system. (Layers take care of transforming data between external and internal representations.) Note that some layers, such as <code>mmap</code>, are not supported in all environments. If your program didn&#39;t explicitly request the failing operation, it may be the result of the value of the environment variable PERLIO.</p>

</dd>
<dt id="Unknown-process-%x-sent-message-to-prime_env_iter:-%s"><a class="permalink" href="perldiag.html#Unknown-process-%25x-sent-message-to-prime_env_iter:-%25s">#</a><a id="Unknown6"></a><a id="Unknown-process-x-sent-message-to-prime_env_iter:-s"></a>Unknown process %x sent message to prime_env_iter: %s</dt>
<dd>

<p>(P) An error peculiar to VMS. Perl was reading values for %ENV before iterating over it, and someone else stuck a message in the stream of data Perl expected. Someone&#39;s very confused, or perhaps trying to subvert Perl&#39;s population of %ENV for nefarious purposes.</p>

</dd>
<dt id="Unknown-regexp-modifier-&quot;/%s&quot;"><a class="permalink" href="perldiag.html#Unknown-regexp-modifier-%22/%25s%22">#</a><a id="Unknown7"></a><a id="Unknown-regexp-modifier-s"></a>Unknown regexp modifier &quot;/%s&quot;</dt>
<dd>

<p>(F) Alphanumerics immediately following the closing delimiter of a regular expression pattern are interpreted by Perl as modifier flags for the regex. One of the ones you specified is invalid. One way this can happen is if you didn&#39;t put in white space between the end of the regex and a following alphanumeric operator:</p>

<pre><code>if ($a =~ /foo/and $bar == 3) { ... }</code></pre>

<p>The <code>&quot;a&quot;</code> is a valid modifier flag, but the <code>&quot;n&quot;</code> is not, and raises this error. Likely what was meant instead was:</p>

<pre><code>if ($a =~ /foo/ and $bar == 3) { ... }</code></pre>

</dd>
<dt id="Unknown-&quot;re&quot;-subpragma-&#39;%s&#39;-(known-ones-are:-%s)"><a class="permalink" href="perldiag.html#Unknown-%22re%22-subpragma-&#39;%25s&#39;-(known-ones-are:-%25s)">#</a><a id="Unknown8"></a><a id="Unknown-re-subpragma-s-known-ones-are:-s"></a>Unknown &quot;re&quot; subpragma &#39;%s&#39; (known ones are: %s)</dt>
<dd>

<p>(W) You tried to use an unknown subpragma of the &quot;re&quot; pragma.</p>

</dd>
<dt id="Unknown-switch-condition-(?(...))-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Unknown-switch-condition-(?(...))-in-regex;-marked-by-in-m/%25s/">#</a><a id="Unknown-switch-condition-(?(...))-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Unknown9"></a><a id="Unknown-switch-condition-...-in-regex-marked-by----HERE-in-m-s"></a>Unknown switch condition (?(...)) in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) The condition part of a (?(condition)if-clause|else-clause) construct is not known. The condition must be one of the following:</p>

<pre><code class="plaintext">(1) (2) ...            true if 1st, 2nd, etc., capture matched
(&lt;NAME&gt;) (&#39;NAME&#39;)      true if named capture matched
(?=...) (?&lt;=...)       true if subpattern matches
(*pla:...) (*plb:...)  true if subpattern matches; also
                            (*positive_lookahead:...)
                            (*positive_lookbehind:...)
(*nla:...) (*nlb:...)  true if subpattern fails to match; also
                            (*negative_lookahead:...)
                            (*negative_lookbehind:...)
(?{ CODE })            true if code returns a true value
(R)                    true if evaluating inside recursion
(R1) (R2) ...          true if directly inside capture group 1, 2,
                            etc.
(R&amp;NAME)               true if directly inside named capture
(DEFINE)               always false; for defining named subpatterns</code></pre>

<p>The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Unknown-Unicode-option-letter-&#39;%c&#39;"><a class="permalink" href="perldiag.html#Unknown-Unicode-option-letter-&#39;%25c&#39;">#</a><a id="Unknown10"></a><a id="Unknown-Unicode-option-letter-c"></a>Unknown Unicode option letter &#39;%c&#39;</dt>
<dd>

<p>(F) You specified an unknown Unicode option. See <a href="perlrun.html#-C-%5Bnumber%2Flist%5D">perlrun</a> documentation of the <code>-C</code> switch for the list of known options.</p>

</dd>
<dt id="Unknown-Unicode-option-value-%d"><a class="permalink" href="perldiag.html#Unknown-Unicode-option-value-%25d">#</a><a id="Unknown11"></a><a id="Unknown-Unicode-option-value-d"></a>Unknown Unicode option value %d</dt>
<dd>

<p>(F) You specified an unknown Unicode option. See <a href="perlrun.html#-C-%5Bnumber%2Flist%5D">perlrun</a> documentation of the <code>-C</code> switch for the list of known options.</p>

</dd>
<dt id="Unknown-user-defined-property-name-\p{%s}"><a class="permalink" href="perldiag.html#Unknown-user-defined-property-name-%5Cp%7B%25s%7D">#</a><a id="Unknown12"></a><a id="Unknown-user-defined-property-name-p-s"></a>Unknown user-defined property name \p{%s}</dt>
<dd>

<p>(F) You specified to use a property within the <code>\p{...}</code> which was a syntactically valid user-defined property, but no definition was found for it by the time one was required to proceed. Check your spelling. See <a href="perlunicode.html#User-Defined-Character-Properties">&quot;User-Defined Character Properties&quot; in perlunicode</a>.</p>

</dd>
<dt id="Unknown-verb-pattern-&#39;%s&#39;-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Unknown-verb-pattern-&#39;%25s&#39;-in-regex;-marked-by-in-m/%25s/">#</a><a id="Unknown-verb-pattern-&#39;%s&#39;-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Unknown13"></a><a id="Unknown-verb-pattern-s-in-regex-marked-by----HERE-in-m-s"></a>Unknown verb pattern &#39;%s&#39; in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You either made a typo or have incorrectly put a <code>*</code> quantifier after an open brace in your pattern. Check the pattern and review <a href="perlre.html">perlre</a> for details on legal verb patterns.</p>

</dd>
<dt id="Unknown-warnings-category-&#39;%s&#39;"><a class="permalink" href="perldiag.html#Unknown-warnings-category-&#39;%25s&#39;">#</a><a id="Unknown14"></a><a id="Unknown-warnings-category-s"></a>Unknown warnings category &#39;%s&#39;</dt>
<dd>

<p>(F) An error issued by the <code>warnings</code> pragma. You specified a warnings category that is unknown to perl at this point.</p>

<p>Note that if you want to enable a warnings category registered by a module (e.g. <code>use warnings &#39;File::Find&#39;</code>), you must have loaded this module first.</p>

</dd>
<dt id="Unmatched-[-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Unmatched-%5B-in-regex;-marked-by-in-m/%25s/">#</a><a id="Unmatched-[-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Unmatched"></a><a id="Unmatched-in-regex-marked-by----HERE-in-m-s"></a>Unmatched [ in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) The brackets around a character class must match. If you wish to include a closing bracket in a character class, backslash it or put it first. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Unmatched-(-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Unmatched-(-in-regex;-marked-by-in-m/%25s/">#</a><a id="Unmatched-(-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Unmatched1"></a><a id="Unmatched-in-regex-marked-by----HERE-in-m-s1"></a>Unmatched ( in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

</dd>
<dt id="Unmatched-)-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Unmatched-)-in-regex;-marked-by-in-m/%25s/">#</a><a id="Unmatched-)-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Unmatched2"></a><a id="Unmatched-in-regex-marked-by----HERE-in-m-s2"></a>Unmatched ) in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) Unbackslashed parentheses must always be balanced in regular expressions. If you&#39;re a vi user, the % key is valuable for finding the matching parenthesis. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Unmatched-right-%s-bracket"><a class="permalink" href="perldiag.html#Unmatched-right-%25s-bracket">#</a><a id="Unmatched3"></a><a id="Unmatched-right-s-bracket"></a>Unmatched right %s bracket</dt>
<dd>

<p>(F) The lexer counted more closing curly or square brackets than opening ones, so you&#39;re probably missing a matching opening bracket. As a general rule, you&#39;ll find the missing one (so to speak) near the place you were last editing.</p>

</dd>
<dt id="Unquoted-string-&quot;%s&quot;-may-clash-with-future-reserved-word"><a class="permalink" href="perldiag.html#Unquoted-string-%22%25s%22-may-clash-with-future-reserved-word">#</a><a id="Unquoted"></a><a id="Unquoted-string-s-may-clash-with-future-reserved-word"></a>Unquoted string &quot;%s&quot; may clash with future reserved word</dt>
<dd>

<p>(W reserved) You used a bareword that might someday be claimed as a reserved word. It&#39;s best to put such a word in quotes, or capitalize it somehow, or insert an underbar into it. You might also declare it as a subroutine.</p>

</dd>
<dt id="Unrecognized-character-%s;-marked-by-after-%s-near-column-%d"><a class="permalink" href="perldiag.html#Unrecognized-character-%25s;-marked-by-after-%25s-near-column-%25d">#</a><a id="Unrecognized-character-%s;-marked-by-&lt;-HERE-after-%s-near-column-%d"></a><a id="Unrecognized"></a><a id="Unrecognized-character-s-marked-by----HERE-after-s-near-column-d"></a>Unrecognized character %s; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> after %s near column %d</dt>
<dd>

<p>(F) The Perl parser has no idea what to do with the specified character in your Perl script (or eval) near the specified column. Perhaps you tried to run a compressed script, a binary program, or a directory as a Perl program.</p>

</dd>
<dt id="Unrecognized-escape-\%c-in-character-class-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Unrecognized-escape-%5C%25c-in-character-class-in-regex;-marked-by-in-m/%25s/">#</a><a id="Unrecognized-escape-\%c-in-character-class-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Unrecognized1"></a><a id="Unrecognized-escape-c-in-character-class-in-regex-marked-by----HERE-in-m-s"></a>Unrecognized escape \%c in character class in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You used a backslash-character combination which is not recognized by Perl inside character classes. This is a fatal error when the character class is used within <code>(?[ ])</code>.</p>

</dd>
<dt id="Unrecognized-escape-\%c-in-character-class-passed-through-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Unrecognized-escape-%5C%25c-in-character-class-passed-through-in-regex;-marked-by-in-m/%25s/">#</a><a id="Unrecognized-escape-\%c-in-character-class-passed-through-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Unrecognized2"></a><a id="Unrecognized-escape-c-in-character-class-passed-through-in-regex-marked-by----HERE-in-m-s"></a>Unrecognized escape \%c in character class passed through in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp) You used a backslash-character combination which is not recognized by Perl inside character classes. The character was understood literally, but this may change in a future version of Perl. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the escape was discovered.</p>

</dd>
<dt id="Unrecognized-escape-\%c-passed-through"><a class="permalink" href="perldiag.html#Unrecognized-escape-%5C%25c-passed-through">#</a><a id="Unrecognized3"></a><a id="Unrecognized-escape-c-passed-through"></a>Unrecognized escape \%c passed through</dt>
<dd>

<p>(W misc) You used a backslash-character combination which is not recognized by Perl. The character was understood literally, but this may change in a future version of Perl.</p>

</dd>
<dt id="Unrecognized-escape-\%s-passed-through-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Unrecognized-escape-%5C%25s-passed-through-in-regex;-marked-by-in-m/%25s/">#</a><a id="Unrecognized-escape-\%s-passed-through-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Unrecognized4"></a><a id="Unrecognized-escape-s-passed-through-in-regex-marked-by----HERE-in-m-s"></a>Unrecognized escape \%s passed through in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp) You used a backslash-character combination which is not recognized by Perl. The character(s) were understood literally, but this may change in a future version of Perl. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the escape was discovered.</p>

</dd>
<dt id="Unrecognized-signal-name-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Unrecognized-signal-name-%22%25s%22">#</a><a id="Unrecognized5"></a><a id="Unrecognized-signal-name-s"></a>Unrecognized signal name &quot;%s&quot;</dt>
<dd>

<p>(F) You specified a signal name to the kill() function that was not recognized. Say <code>kill -l</code> in your shell to see the valid signal names on your system.</p>

</dd>
<dt id="Unrecognized-switch:-%s-(-h-will-show-valid-options)"><a class="permalink" href="perldiag.html#Unrecognized-switch:-%25s-(-h-will-show-valid-options)">#</a><a id="Unrecognized6"></a><a id="Unrecognized-switch:---s--h-will-show-valid-options"></a>Unrecognized switch: -%s (-h will show valid options)</dt>
<dd>

<p>(F) You specified an illegal option to Perl. Don&#39;t do that. (If you think you didn&#39;t do that, check the #! line to see if it&#39;s supplying the bad switch on your behalf.)</p>

</dd>
<dt id="Unsuccessful-%s-on-filename-containing-newline"><a class="permalink" href="perldiag.html#Unsuccessful-%25s-on-filename-containing-newline">#</a><a id="Unsuccessful"></a><a id="Unsuccessful-s-on-filename-containing-newline"></a>Unsuccessful %s on filename containing newline</dt>
<dd>

<p>(W newline) A file operation was attempted on a filename, and that operation failed, PROBABLY because the filename contained a newline, PROBABLY because you forgot to chomp() it off. See <a href="perlfunc.html#chomp">&quot;chomp&quot; in perlfunc</a>.</p>

</dd>
<dt id="Unsupported-directory-function-&quot;%s&quot;-called"><a class="permalink" href="perldiag.html#Unsupported-directory-function-%22%25s%22-called">#</a><a id="Unsupported"></a><a id="Unsupported-directory-function-s-called"></a>Unsupported directory function &quot;%s&quot; called</dt>
<dd>

<p>(F) Your machine doesn&#39;t support opendir() and readdir().</p>

</dd>
<dt id="Unsupported-function-%s"><a class="permalink" href="perldiag.html#Unsupported-function-%25s">#</a><a id="Unsupported1"></a><a id="Unsupported-function-s"></a>Unsupported function %s</dt>
<dd>

<p>(F) This machine doesn&#39;t implement the indicated function, apparently. At least, Configure doesn&#39;t think so.</p>

</dd>
<dt id="Unsupported-function-fork"><a class="permalink" href="perldiag.html#Unsupported-function-fork">#</a><a id="Unsupported2"></a>Unsupported function fork</dt>
<dd>

<p>(F) Your version of executable does not support forking.</p>

<p>Note that under some systems, like OS/2, there may be different flavors of Perl executables, some of which may support fork, some not. Try changing the name you call Perl by to <code>perl_</code>, <code>perl__</code>, and so on.</p>

</dd>
<dt id="Unsupported-script-encoding-%s"><a class="permalink" href="perldiag.html#Unsupported-script-encoding-%25s">#</a><a id="Unsupported3"></a><a id="Unsupported-script-encoding-s"></a>Unsupported script encoding %s</dt>
<dd>

<p>(F) Your program file begins with a Unicode Byte Order Mark (BOM) which declares it to be in a Unicode encoding that Perl cannot read.</p>

</dd>
<dt id="Unsupported-socket-function-&quot;%s&quot;-called"><a class="permalink" href="perldiag.html#Unsupported-socket-function-%22%25s%22-called">#</a><a id="Unsupported4"></a><a id="Unsupported-socket-function-s-called"></a>Unsupported socket function &quot;%s&quot; called</dt>
<dd>

<p>(F) Your machine doesn&#39;t support the Berkeley socket mechanism, or at least that&#39;s what Configure thought.</p>

</dd>
<dt id="Unterminated-&#39;(*...&#39;-argument-in-regex;-marked-by-&lt;-HERE-in-m/%s/"><a class="permalink" href="perldiag.html#Unterminated-&#39;(*...&#39;-argument-in-regex;-marked-by-%3C-HERE-in-m/%25s/">#</a><a id="Unterminated"></a><a id="Unterminated-...-argument-in-regex-marked-by----HERE-in-m-s"></a>Unterminated &#39;(*...&#39; argument in regex; marked by &lt;-- HERE in m/%s/</dt>
<dd>

<p>(F) You used a pattern of the form <code>(*...:...)</code> but did not terminate the pattern with a <code>)</code>. Fix the pattern and retry.</p>

</dd>
<dt id="Unterminated-attribute-list"><a class="permalink" href="perldiag.html#Unterminated-attribute-list">#</a><a id="Unterminated1"></a>Unterminated attribute list</dt>
<dd>

<p>(F) The lexer found something other than a simple identifier at the start of an attribute, and it wasn&#39;t a semicolon or the start of a block. Perhaps you terminated the parameter list of the previous attribute too soon. See <a href="attributes.html">attributes</a>.</p>

</dd>
<dt id="Unterminated-attribute-parameter-in-attribute-list"><a class="permalink" href="perldiag.html#Unterminated-attribute-parameter-in-attribute-list">#</a><a id="Unterminated2"></a>Unterminated attribute parameter in attribute list</dt>
<dd>

<p>(F) The lexer saw an opening (left) parenthesis character while parsing an attribute list, but the matching closing (right) parenthesis character was not found. You may need to add (or remove) a backslash character to get your parentheses to balance. See <a href="attributes.html">attributes</a>.</p>

</dd>
<dt id="Unterminated-compressed-integer"><a class="permalink" href="perldiag.html#Unterminated-compressed-integer">#</a><a id="Unterminated3"></a>Unterminated compressed integer</dt>
<dd>

<p>(F) An argument to unpack(&quot;w&quot;,...) was incompatible with the BER compressed integer format and could not be converted to an integer. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="Unterminated-&#39;(*...&#39;-construct-in-regex;-marked-by-&lt;-HERE-in-m/%s/"><a class="permalink" href="perldiag.html#Unterminated-&#39;(*...&#39;-construct-in-regex;-marked-by-%3C-HERE-in-m/%25s/">#</a><a id="Unterminated4"></a><a id="Unterminated-...-construct-in-regex-marked-by----HERE-in-m-s"></a>Unterminated &#39;(*...&#39; construct in regex; marked by &lt;-- HERE in m/%s/</dt>
<dd>

<p>(F) You used a pattern of the form <code>(*...)</code> but did not terminate the pattern with a <code>)</code>. Fix the pattern and retry.</p>

</dd>
<dt id="Unterminated-delimiter-for-here-document"><a class="permalink" href="perldiag.html#Unterminated-delimiter-for-here-document">#</a><a id="Unterminated5"></a>Unterminated delimiter for here document</dt>
<dd>

<p>(F) This message occurs when a here document label has an initial quotation mark but the final quotation mark is missing. Perhaps you wrote:</p>

<pre><code class="plaintext">&lt;&lt;&quot;foo</code></pre>

<p>instead of:</p>

<pre><code class="plaintext">&lt;&lt;&quot;foo&quot;</code></pre>

</dd>
<dt id="Unterminated-\g...-pattern-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Unterminated-%5Cg...-pattern-in-regex;-marked-by-in-m/%25s/">#</a><a id="Unterminated-\g...-pattern-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Unterminated6"></a><a id="Unterminated-g...-pattern-in-regex-marked-by----HERE-in-m-s"></a>Unterminated \g... pattern in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

</dd>
<dt id="Unterminated-\g{...}-pattern-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Unterminated-%5Cg%7B...%7D-pattern-in-regex;-marked-by-in-m/%25s/">#</a><a id="Unterminated-\g{...}-pattern-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Unterminated7"></a><a id="Unterminated-g-...-pattern-in-regex-marked-by----HERE-in-m-s"></a>Unterminated \g{...} pattern in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) In a regular expression, you had a <code>\g</code> that wasn&#39;t followed by a proper group reference. In the case of <code>\g{</code>, the closing brace is missing; otherwise the <code>\g</code> must be followed by an integer. Fix the pattern and retry.</p>

</dd>
<dt id="Unterminated-&lt;&gt;-operator"><a class="permalink" href="perldiag.html#Unterminated-%3C%3E-operator">#</a><a id="Unterminated8"></a><a id="Unterminated-operator"></a>Unterminated &lt;&gt; operator</dt>
<dd>

<p>(F) The lexer saw a left angle bracket in a place where it was expecting a term, so it&#39;s looking for the corresponding right angle bracket, and not finding it. Chances are you left some needed parentheses out earlier in the line, and you really meant a &quot;less than&quot;.</p>

</dd>
<dt id="Unterminated-verb-pattern-argument-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Unterminated-verb-pattern-argument-in-regex;-marked-by-in-m/%25s/">#</a><a id="Unterminated-verb-pattern-argument-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Unterminated9"></a><a id="Unterminated-verb-pattern-argument-in-regex-marked-by----HERE-in-m-s"></a>Unterminated verb pattern argument in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You used a pattern of the form <code>(*VERB:ARG)</code> but did not terminate the pattern with a <code>)</code>. Fix the pattern and retry.</p>

</dd>
<dt id="Unterminated-verb-pattern-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Unterminated-verb-pattern-in-regex;-marked-by-in-m/%25s/">#</a><a id="Unterminated-verb-pattern-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Unterminated10"></a><a id="Unterminated-verb-pattern-in-regex-marked-by----HERE-in-m-s"></a>Unterminated verb pattern in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You used a pattern of the form <code>(*VERB)</code> but did not terminate the pattern with a <code>)</code>. Fix the pattern and retry.</p>

</dd>
<dt id="untie-attempted-while-%d-inner-references-still-exist"><a class="permalink" href="perldiag.html#untie-attempted-while-%25d-inner-references-still-exist">#</a><a id="untie"></a><a id="untie-attempted-while-d-inner-references-still-exist"></a>untie attempted while %d inner references still exist</dt>
<dd>

<p>(W untie) A copy of the object returned from <code>tie</code> (or <code>tied</code>) was still valid when <code>untie</code> was called.</p>

</dd>
<dt id="Usage:-POSIX::%s(%s)"><a class="permalink" href="perldiag.html#Usage:-POSIX::%25s(%25s)">#</a><a id="Usage"></a><a id="Usage:-POSIX::-s-s"></a>Usage: POSIX::%s(%s)</dt>
<dd>

<p>(F) You called a POSIX function with incorrect arguments. See <a href="POSIX.html#FUNCTIONS">&quot;FUNCTIONS&quot; in POSIX</a> for more information.</p>

</dd>
<dt id="Usage:-Win32::%s(%s)"><a class="permalink" href="perldiag.html#Usage:-Win32::%25s(%25s)">#</a><a id="Usage1"></a><a id="Usage:-Win32::-s-s"></a>Usage: Win32::%s(%s)</dt>
<dd>

<p>(F) You called a Win32 function with incorrect arguments. See <a href="Win32.html">Win32</a> for more information.</p>

</dd>
<dt id="$[-used-in-%s-(did-you-mean-$]-?)"><a class="permalink" href="perldiag.html#$%5B-used-in-%25s-(did-you-mean-$%5D-?)">#</a><a id="used-in-s-did-you-mean"></a>$[ used in %s (did you mean $] ?)</dt>
<dd>

<p>(W syntax) You used <code>$[</code> in a comparison, such as:</p>

<pre><code>    if ($[ &gt; 5.006) {
	...
    }</code></pre>

<p>You probably meant to use <code>$]</code> instead. <code>$[</code> is the base for indexing arrays. <code>$]</code> is the Perl version number in decimal.</p>

</dd>
<dt id="Use-&quot;%s&quot;-instead-of-&quot;%s&quot;"><a class="permalink" href="perldiag.html#Use-%22%25s%22-instead-of-%22%25s%22">#</a><a id="Use"></a><a id="Use-s-instead-of-s"></a>Use &quot;%s&quot; instead of &quot;%s&quot;</dt>
<dd>

<p>(F) The second listed construct is no longer legal. Use the first one instead.</p>

</dd>
<dt id="Useless-assignment-to-a-temporary"><a class="permalink" href="perldiag.html#Useless-assignment-to-a-temporary">#</a><a id="Useless"></a>Useless assignment to a temporary</dt>
<dd>

<p>(W misc) You assigned to an lvalue subroutine, but what the subroutine returned was a temporary scalar about to be discarded, so the assignment had no effect.</p>

</dd>
<dt id="Useless-(?-%s)-don&#39;t-use-/%s-modifier-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Useless-(?-%25s)-don&#39;t-use-/%25s-modifier-in-regex;-marked-by-in-m/%25s/">#</a><a id="Useless-(?-%s)-don&#39;t-use-/%s-modifier-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Useless1"></a><a id="Useless---s---dont-use-s-modifier-in-regex-marked-by----HERE-in-m-s"></a>Useless (?-%s) - don&#39;t use /%s modifier in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp) You have used an internal modifier such as (?-o) that has no meaning unless removed from the entire regexp:</p>

<pre><code>if ($string =~ /(?-o)$pattern/o) { ... }</code></pre>

<p>must be written as</p>

<pre><code>if ($string =~ /$pattern/) { ... }</code></pre>

<p>The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Useless-localization-of-%s"><a class="permalink" href="perldiag.html#Useless-localization-of-%25s">#</a><a id="Useless2"></a><a id="Useless-localization-of-s"></a>Useless localization of %s</dt>
<dd>

<p>(W syntax) The localization of lvalues such as <code>local($x=10)</code> is legal, but in fact the local() currently has no effect. This may change at some point in the future, but in the meantime such code is discouraged.</p>

</dd>
<dt id="Useless-(?%s)-use-/%s-modifier-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Useless-(?%25s)-use-/%25s-modifier-in-regex;-marked-by-in-m/%25s/">#</a><a id="Useless-(?%s)-use-/%s-modifier-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Useless3"></a><a id="Useless-s---use-s-modifier-in-regex-marked-by----HERE-in-m-s"></a>Useless (?%s) - use /%s modifier in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp) You have used an internal modifier such as (?o) that has no meaning unless applied to the entire regexp:</p>

<pre><code>if ($string =~ /(?o)$pattern/) { ... }</code></pre>

<p>must be written as</p>

<pre><code>if ($string =~ /$pattern/o) { ... }</code></pre>

<p>The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered. See <a href="perlre.html">perlre</a>.</p>

</dd>
<dt id="Useless-use-of-attribute-&quot;const&quot;"><a class="permalink" href="perldiag.html#Useless-use-of-attribute-%22const%22">#</a><a id="Useless4"></a><a id="Useless-use-of-attribute-const"></a>Useless use of attribute &quot;const&quot;</dt>
<dd>

<p>(W misc) The <code>const</code> attribute has no effect except on anonymous closure prototypes. You applied it to a subroutine via <a href="attributes.html">attributes.pm</a>. This is only useful inside an attribute handler for an anonymous subroutine.</p>

</dd>
<dt id="Useless-use-of-/d-modifier-in-transliteration-operator"><a class="permalink" href="perldiag.html#Useless-use-of-/d-modifier-in-transliteration-operator">#</a><a id="Useless5"></a><a id="Useless-use-of-d-modifier-in-transliteration-operator"></a>Useless use of /d modifier in transliteration operator</dt>
<dd>

<p>(W misc) You have used the /d modifier where the searchlist has the same length as the replacelist. See <a href="perlop.html">perlop</a> for more information about the /d modifier.</p>

</dd>
<dt id="Useless-use-of-\E"><a class="permalink" href="perldiag.html#Useless-use-of-%5CE">#</a><a id="Useless6"></a><a id="Useless-use-of-E"></a>Useless use of \E</dt>
<dd>

<p>(W misc) You have a \E in a double-quotish string without a <code>\U</code>, <code>\L</code> or <code>\Q</code> preceding it.</p>

</dd>
<dt id="Useless-use-of-greediness-modifier-&#39;%c&#39;-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Useless-use-of-greediness-modifier-&#39;%25c&#39;-in-regex;-marked-by-in-m/%25s/">#</a><a id="Useless-use-of-greediness-modifier-&#39;%c&#39;-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Useless7"></a><a id="Useless-use-of-greediness-modifier-c-in-regex-marked-by----HERE-in-m-s"></a>Useless use of greediness modifier &#39;%c&#39; in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp) You specified something like these:</p>

<pre><code class="plaintext">qr/a{3}?/
qr/b{1,1}+/</code></pre>

<p>The <code>&quot;?&quot;</code> and <code>&quot;+&quot;</code> don&#39;t have any effect, as they modify whether to match more or fewer when there is a choice, and by specifying to match exactly a given numer, there is no room left for a choice.</p>

</dd>
<dt id="Useless-use-of-%s-in-void-context"><a class="permalink" href="perldiag.html#Useless-use-of-%25s-in-void-context">#</a><a id="Useless8"></a><a id="Useless-use-of-s-in-void-context"></a>Useless use of %s in void context</dt>
<dd>

<p>(W void) You did something without a side effect in a context that does nothing with the return value, such as a statement that doesn&#39;t return a value from a block, or the left side of a scalar comma operator. Very often this points not to stupidity on your part, but a failure of Perl to parse your program the way you thought it would. For example, you&#39;d get this if you mixed up your C precedence with Python precedence and said</p>

<pre><code>$one, $two = 1, 2;</code></pre>

<p>when you meant to say</p>

<pre><code>($one, $two) = (1, 2);</code></pre>

<p>Another common error is to use ordinary parentheses to construct a list reference when you should be using square or curly brackets, for example, if you say</p>

<pre><code>$array = (1,2);</code></pre>

<p>when you should have said</p>

<pre><code>$array = [1,2];</code></pre>

<p>The square brackets explicitly turn a list value into a scalar value, while parentheses do not. So when a parenthesized list is evaluated in a scalar context, the comma is treated like C&#39;s comma operator, which throws away the left argument, which is not what you want. See <a href="perlref.html">perlref</a> for more on this.</p>

<p>This warning will not be issued for numerical constants equal to 0 or 1 since they are often used in statements like</p>

<pre><code>1 while sub_with_side_effects();</code></pre>

<p>String constants that would normally evaluate to 0 or 1 are warned about.</p>

</dd>
<dt id="Useless-use-of-(?-p)-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Useless-use-of-(?-p)-in-regex;-marked-by-in-m/%25s/">#</a><a id="Useless-use-of-(?-p)-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Useless9"></a><a id="Useless-use-of--p-in-regex-marked-by----HERE-in-m-s"></a>Useless use of (?-p) in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp) The <code>p</code> modifier cannot be turned off once set. Trying to do so is futile.</p>

</dd>
<dt id="Useless-use-of-&quot;re&quot;-pragma"><a class="permalink" href="perldiag.html#Useless-use-of-%22re%22-pragma">#</a><a id="Useless10"></a><a id="Useless-use-of-re-pragma"></a>Useless use of &quot;re&quot; pragma</dt>
<dd>

<p>(W) You did <code>use re;</code> without any arguments. That isn&#39;t very useful.</p>

</dd>
<dt id="Useless-use-of-sort-in-scalar-context"><a class="permalink" href="perldiag.html#Useless-use-of-sort-in-scalar-context">#</a><a id="Useless11"></a>Useless use of sort in scalar context</dt>
<dd>

<p>(W void) You used sort in scalar context, as in :</p>

<pre><code>my $x = sort @y;</code></pre>

<p>This is not very useful, and perl currently optimizes this away.</p>

</dd>
<dt id="Useless-use-of-%s-with-no-values"><a class="permalink" href="perldiag.html#Useless-use-of-%25s-with-no-values">#</a><a id="Useless12"></a><a id="Useless-use-of-s-with-no-values"></a>Useless use of %s with no values</dt>
<dd>

<p>(W syntax) You used the push() or unshift() function with no arguments apart from the array, like <code>push(@x)</code> or <code>unshift(@foo)</code>. That won&#39;t usually have any effect on the array, so is completely useless. It&#39;s possible in principle that push(@tied_array) could have some effect if the array is tied to a class which implements a PUSH method. If so, you can write it as <code>push(@tied_array,())</code> to avoid this warning.</p>

</dd>
<dt id="&quot;use&quot;-not-allowed-in-expression"><a class="permalink" href="perldiag.html#%22use%22-not-allowed-in-expression">#</a><a id="use-not-allowed-in-expression"></a>&quot;use&quot; not allowed in expression</dt>
<dd>

<p>(F) The &quot;use&quot; keyword is recognized and executed at compile time, and returns no useful value. See <a href="perlmod.html">perlmod</a>.</p>

</dd>
<dt id="Use-of-bare-&lt;&lt;-to-mean-&lt;&lt;&quot;&quot;-is-forbidden"><a class="permalink" href="perldiag.html#Use-of-bare-%3C%3C-to-mean-%3C%3C%22%22-is-forbidden">#</a><a id="Use1"></a><a id="Use-of-bare-to-mean-is-forbidden"></a>Use of bare &lt;&lt; to mean &lt;&lt;&quot;&quot; is forbidden</dt>
<dd>

<p>(F) You are now required to use the explicitly quoted form if you wish to use an empty line as the terminator of the here-document.</p>

<p>Use of a bare terminator was deprecated in Perl 5.000, and is a fatal error as of Perl 5.28.</p>

</dd>
<dt id="Use-of-/c-modifier-is-meaningless-in-s///"><a class="permalink" href="perldiag.html#Use-of-/c-modifier-is-meaningless-in-s///">#</a><a id="Use2"></a><a id="Use-of-c-modifier-is-meaningless-in-s"></a>Use of /c modifier is meaningless in s///</dt>
<dd>

<p>(W regexp) You used the /c modifier in a substitution. The /c modifier is not presently meaningful in substitutions.</p>

</dd>
<dt id="Use-of-/c-modifier-is-meaningless-without-/g"><a class="permalink" href="perldiag.html#Use-of-/c-modifier-is-meaningless-without-/g">#</a><a id="Use3"></a><a id="Use-of-c-modifier-is-meaningless-without-g"></a>Use of /c modifier is meaningless without /g</dt>
<dd>

<p>(W regexp) You used the /c modifier with a regex operand, but didn&#39;t use the /g modifier. Currently, /c is meaningful only when /g is used. (This may change in the future.)</p>

</dd>
<dt id="Use-of-code-point-0x%s-is-not-allowed;-the-permissible-max-is-0x%X"><a class="permalink" href="perldiag.html#Use-of-code-point-0x%25s-is-not-allowed;-the-permissible-max-is-0x%25X">#</a><a id="Use4"></a><a id="Use-of-code-point-0x-s-is-not-allowed-the-permissible-max-is-0x-X"></a>Use of code point 0x%s is not allowed; the permissible max is 0x%X</dt>
<dd>

</dd>
<dt id="Use-of-code-point-0x%s-is-not-allowed;-the-permissible-max-is-0x%X-in-regex;-marked-by-&lt;-HERE-in-m/%s/"><a class="permalink" href="perldiag.html#Use-of-code-point-0x%25s-is-not-allowed;-the-permissible-max-is-0x%25X-in-regex;-marked-by-%3C-HERE-in-m/%25s/">#</a><a id="Use5"></a><a id="Use-of-code-point-0x-s-is-not-allowed-the-permissible-max-is-0x-X-in-regex-marked-by----HERE-in-m-s"></a>Use of code point 0x%s is not allowed; the permissible max is 0x%X in regex; marked by &lt;-- HERE in m/%s/</dt>
<dd>

<p>(F) You used a code point that is not allowed, because it is too large. Unicode only allows code points up to 0x10FFFF, but Perl allows much larger ones. Earlier versions of Perl allowed code points above IV_MAX (0x7FFFFFF on 32-bit platforms, 0x7FFFFFFFFFFFFFFF on 64-bit platforms), however, this could possibly break the perl interpreter in some constructs, including causing it to hang in a few cases.</p>

<p>If your code is to run on various platforms, keep in mind that the upper limit depends on the platform. It is much larger on 64-bit word sizes than 32-bit ones.</p>

<p>The use of out of range code points was deprecated in Perl 5.24, and became a fatal error in Perl 5.28.</p>

</dd>
<dt id="Use-of-each()-on-hash-after-insertion-without-resetting-hash-iterator-results-in-undefined-behavior"><a class="permalink" href="perldiag.html#Use-of-each()-on-hash-after-insertion-without-resetting-hash-iterator-results-in-undefined-behavior">#</a><a id="Use6"></a><a id="Use-of-each-on-hash-after-insertion-without-resetting-hash-iterator-results-in-undefined-behavior"></a>Use of each() on hash after insertion without resetting hash iterator results in undefined behavior</dt>
<dd>

<p>(S internal) The behavior of <code>each()</code> after insertion is undefined; it may skip items, or visit items more than once. Consider using <code>keys()</code> instead of <code>each()</code>.</p>

</dd>
<dt id="Use-of-:=-for-an-empty-attribute-list-is-not-allowed"><a class="permalink" href="perldiag.html#Use-of-:=-for-an-empty-attribute-list-is-not-allowed">#</a><a id="Use7"></a><a id="Use-of-:-for-an-empty-attribute-list-is-not-allowed"></a>Use of := for an empty attribute list is not allowed</dt>
<dd>

<p>(F) The construction <code>my $x := 42</code> used to parse as equivalent to <code>my $x : = 42</code> (applying an empty attribute list to <code>$x</code>). This construct was deprecated in 5.12.0, and has now been made a syntax error, so <code>:=</code> can be reclaimed as a new operator in the future.</p>

<p>If you need an empty attribute list, for example in a code generator, add a space before the <code>=</code>.</p>

</dd>
<dt id="Use-of-%s-for-non-UTF-8-locale-is-wrong.-Assuming-a-UTF-8-locale"><a class="permalink" href="perldiag.html#Use-of-%25s-for-non-UTF-8-locale-is-wrong.-Assuming-a-UTF-8-locale">#</a><a id="Use8"></a><a id="Use-of-s-for-non-UTF-8-locale-is-wrong.-Assuming-a-UTF-8-locale"></a>Use of %s for non-UTF-8 locale is wrong. Assuming a UTF-8 locale</dt>
<dd>

<p>(W locale) You are matching a regular expression using locale rules, and the specified construct was encountered. This construct is only valid for UTF-8 locales, which the current locale isn&#39;t. This doesn&#39;t make sense. Perl will continue, assuming a Unicode (UTF-8) locale, but the results are likely to be wrong.</p>

</dd>
<dt id="Use-of-freed-value-in-iteration"><a class="permalink" href="perldiag.html#Use-of-freed-value-in-iteration">#</a><a id="Use9"></a>Use of freed value in iteration</dt>
<dd>

<p>(F) Perhaps you modified the iterated array within the loop? This error is typically caused by code like the following:</p>

<pre><code>@a = (3,4);
@a = () for (1,2,@a);</code></pre>

<p>You are not supposed to modify arrays while they are being iterated over. For speed and efficiency reasons, Perl internally does not do full reference-counting of iterated items, hence deleting such an item in the middle of an iteration causes Perl to see a freed value.</p>

</dd>
<dt id="Use-of-/g-modifier-is-meaningless-in-split"><a class="permalink" href="perldiag.html#Use-of-/g-modifier-is-meaningless-in-split">#</a><a id="Use10"></a><a id="Use-of-g-modifier-is-meaningless-in-split"></a>Use of /g modifier is meaningless in split</dt>
<dd>

<p>(W regexp) You used the /g modifier on the pattern for a <code>split</code> operator. Since <code>split</code> always tries to match the pattern repeatedly, the <code>/g</code> has no effect.</p>

</dd>
<dt id="Use-of-&quot;goto&quot;-to-jump-into-a-construct-is-deprecated"><a class="permalink" href="perldiag.html#Use-of-%22goto%22-to-jump-into-a-construct-is-deprecated">#</a><a id="Use11"></a><a id="Use-of-goto-to-jump-into-a-construct-is-deprecated"></a>Use of &quot;goto&quot; to jump into a construct is deprecated</dt>
<dd>

<p>(D deprecated) Using <code>goto</code> to jump from an outer scope into an inner scope is deprecated and should be avoided.</p>

<p>This was deprecated in Perl 5.12.</p>

</dd>
<dt id="Use-of-&#39;%s&#39;-in-\p{}-or-\P{}-is-deprecated-because:-%s"><a class="permalink" href="perldiag.html#Use-of-&#39;%25s&#39;-in-%5Cp%7B%7D-or-%5CP%7B%7D-is-deprecated-because:-%25s">#</a><a id="Use12"></a><a id="Use-of-s-in-p-or-P-is-deprecated-because:-s"></a>Use of &#39;%s&#39; in \p{} or \P{} is deprecated because: %s</dt>
<dd>

<p>(D deprecated) Certain properties are deprecated by Unicode, and may eventually be removed from the Standard, at which time Perl will follow along. In the meantime, this message is raised to notify you.</p>

</dd>
<dt id="Use-of-inherited-AUTOLOAD-for-non-method-%s::%s()-is-no-longer-allowed"><a class="permalink" href="perldiag.html#Use-of-inherited-AUTOLOAD-for-non-method-%25s::%25s()-is-no-longer-allowed">#</a><a id="Use13"></a><a id="Use-of-inherited-AUTOLOAD-for-non-method-s::-s-is-no-longer-allowed"></a>Use of inherited AUTOLOAD for non-method %s::%s() is no longer allowed</dt>
<dd>

<p>(F) As an accidental feature, <code>AUTOLOAD</code> subroutines were looked up as methods (using the <code>@ISA</code> hierarchy), even when the subroutines to be autoloaded were called as plain functions (e.g. <code>Foo::bar()</code>), not as methods (e.g. <code>Foo-&gt;bar()</code> or <code>$obj-&gt;bar()</code>).</p>

<p>This was deprecated in Perl 5.004, and was made fatal in Perl 5.28.</p>

</dd>
<dt id="Use-of-%s-in-printf-format-not-supported"><a class="permalink" href="perldiag.html#Use-of-%25s-in-printf-format-not-supported">#</a><a id="Use14"></a><a id="Use-of-s-in-printf-format-not-supported"></a>Use of %s in printf format not supported</dt>
<dd>

<p>(F) You attempted to use a feature of printf that is accessible from only C. This usually means there&#39;s a better way to do it in Perl.</p>

</dd>
<dt id="Use-of-%s-is-not-allowed-in-Unicode-property-wildcard-subpatterns-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Use-of-%25s-is-not-allowed-in-Unicode-property-wildcard-subpatterns-in-regex;-marked-by-in-m/%25s/">#</a><a id="Use-of-%s-is-not-allowed-in-Unicode-property-wildcard-subpatterns-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Use15"></a><a id="Use-of-s-is-not-allowed-in-Unicode-property-wildcard-subpatterns-in-regex-marked-by----HERE-in-m-s"></a>Use of %s is not allowed in Unicode property wildcard subpatterns in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You were using a wildcard subpattern a Unicode property value, and the subpattern contained something that is illegal. Not all regular expression capabilities are legal in such subpatterns, and this is one. Rewrite your subppattern to not use the offending construct. See <a href="perlunicode.html#Wildcards-in-Property-Values">&quot;Wildcards in Property Values&quot; in perlunicode</a>.</p>

</dd>
<dt id="Use-of-l-on-filehandle%s"><a class="permalink" href="perldiag.html#Use-of-l-on-filehandle%25s">#</a><a id="Use16"></a><a id="Use-of--l-on-filehandle-s"></a>Use of -l on filehandle%s</dt>
<dd>

<p>(W io) A filehandle represents an opened file, and when you opened the file it already went past any symlink you are presumably trying to look for. The operation returned <code>undef</code>. Use a filename instead.</p>

</dd>
<dt id="Use-of-reference-&quot;%s&quot;-as-array-index"><a class="permalink" href="perldiag.html#Use-of-reference-%22%25s%22-as-array-index">#</a><a id="Use17"></a><a id="Use-of-reference-s-as-array-index"></a>Use of reference &quot;%s&quot; as array index</dt>
<dd>

<p>(W misc) You tried to use a reference as an array index; this probably isn&#39;t what you mean, because references in numerical context tend to be huge numbers, and so usually indicates programmer error.</p>

<p>If you really do mean it, explicitly numify your reference, like so: <code>$array[0+$ref]</code>. This warning is not given for overloaded objects, however, because you can overload the numification and stringification operators and then you presumably know what you are doing.</p>

</dd>
<dt id="Use-of-strings-with-code-points-over-0xFF-as-arguments-to-%s-operator-is-not-allowed"><a class="permalink" href="perldiag.html#Use-of-strings-with-code-points-over-0xFF-as-arguments-to-%25s-operator-is-not-allowed">#</a><a id="Use18"></a><a id="Use-of-strings-with-code-points-over-0xFF-as-arguments-to-s-operator-is-not-allowed"></a>Use of strings with code points over 0xFF as arguments to %s operator is not allowed</dt>
<dd>

<p>(F) You tried to use one of the string bitwise operators (<code>&amp;</code> or <code>|</code> or <code>^</code> or <code>~</code>) on a string containing a code point over 0xFF. The string bitwise operators treat their operands as strings of bytes, and values beyond 0xFF are nonsensical in this context.</p>

<p>Certain instances became fatal in Perl 5.28; others in perl 5.32.</p>

</dd>
<dt id="Use-of-strings-with-code-points-over-0xFF-as-arguments-to-vec-is-forbidden"><a class="permalink" href="perldiag.html#Use-of-strings-with-code-points-over-0xFF-as-arguments-to-vec-is-forbidden">#</a><a id="Use19"></a>Use of strings with code points over 0xFF as arguments to vec is forbidden</dt>
<dd>

<p>(F) You tried to use <a href="perlfunc.html#vec-EXPR%2COFFSET%2CBITS"><code>vec</code></a> on a string containing a code point over 0xFF, which is nonsensical here.</p>

<p>This became fatal in Perl 5.32.</p>

</dd>
<dt id="Use-of-tainted-arguments-in-%s-is-deprecated"><a class="permalink" href="perldiag.html#Use-of-tainted-arguments-in-%25s-is-deprecated">#</a><a id="Use20"></a><a id="Use-of-tainted-arguments-in-s-is-deprecated"></a>Use of tainted arguments in %s is deprecated</dt>
<dd>

<p>(W taint, deprecated) You have supplied <code>system()</code> or <code>exec()</code> with multiple arguments and at least one of them is tainted. This used to be allowed but will become a fatal error in a future version of perl. Untaint your arguments. See <a href="perlsec.html">perlsec</a>.</p>

</dd>
<dt id="Use-of-unassigned-code-point-or-non-standalone-grapheme-for-a-delimiter-is-not-allowed"><a class="permalink" href="perldiag.html#Use-of-unassigned-code-point-or-non-standalone-grapheme-for-a-delimiter-is-not-allowed">#</a><a id="Use21"></a>Use of unassigned code point or non-standalone grapheme for a delimiter is not allowed</dt>
<dd>

<p>(F) A grapheme is what appears to a native-speaker of a language to be a character. In Unicode (and hence Perl) a grapheme may actually be several adjacent characters that together form a complete grapheme. For example, there can be a base character, like &quot;R&quot; and an accent, like a circumflex &quot;^&quot;, that appear when displayed to be a single character with the circumflex hovering over the &quot;R&quot;. Perl currently allows things like that circumflex to be delimiters of strings, patterns, <i>etc</i>. When displayed, the circumflex would look like it belongs to the character just to the left of it. In order to move the language to be able to accept graphemes as delimiters, we cannot allow the use of delimiters which aren&#39;t graphemes by themselves. Also, a delimiter must already be assigned (or known to be never going to be assigned) to try to future-proof code, for otherwise code that works today would fail to compile if the currently unassigned delimiter ends up being something that isn&#39;t a stand-alone grapheme. Because Unicode is never going to assign <a href="perlunicode.html#Noncharacter-code-points">non-character code points</a>, nor <a href="https://perldoc.perl.org/5.35.0/&#32;perlunicode#Beyond-Unicode-code-points">code points that are above the legal Unicode maximum</a>, those can be delimiters, and their use is legal.</p>

</dd>
<dt id="Use-of-uninitialized-value%s"><a class="permalink" href="perldiag.html#Use-of-uninitialized-value%25s">#</a><a id="Use22"></a><a id="Use-of-uninitialized-value-s"></a>Use of uninitialized value%s</dt>
<dd>

<p>(W uninitialized) An undefined value was used as if it were already defined. It was interpreted as a &quot;&quot; or a 0, but maybe it was a mistake. To suppress this warning assign a defined value to your variables.</p>

<p>To help you figure out what was undefined, perl will try to tell you the name of the variable (if any) that was undefined. In some cases it cannot do this, so it also tells you what operation you used the undefined value in. Note, however, that perl optimizes your program and the operation displayed in the warning may not necessarily appear literally in your program. For example, <code>&quot;that $foo&quot;</code> is usually optimized into <code>&quot;that &quot; . $foo</code>, and the warning will refer to the <code>concatenation (.)</code> operator, even though there is no <code>.</code> in your program.</p>

</dd>
<dt id="&quot;use-re-&#39;strict&#39;&quot;-is-experimental"><a class="permalink" href="perldiag.html#%22use-re-&#39;strict&#39;%22-is-experimental">#</a><a id="use-re-strict-is-experimental"></a>&quot;use re &#39;strict&#39;&quot; is experimental</dt>
<dd>

<p>(S experimental::re_strict) The things that are different when a regular expression pattern is compiled under <code>&#39;strict&#39;</code> are subject to change in future Perl releases in incompatible ways. This means that a pattern that compiles today may not in a future Perl release. This warning is to alert you to that risk.</p>

</dd>
<dt id="Use-\x{...}-for-more-than-two-hex-characters-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Use-%5Cx%7B...%7D-for-more-than-two-hex-characters-in-regex;-marked-by-in-m/%25s/">#</a><a id="Use-\x{...}-for-more-than-two-hex-characters-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Use23"></a><a id="Use-x-...-for-more-than-two-hex-characters-in-regex-marked-by----HERE-in-m-s"></a>Use \x{...} for more than two hex characters in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) In a regular expression, you said something like</p>

<pre><code class="plaintext">(?[ [ \xBEEF ] ])</code></pre>

<p>Perl isn&#39;t sure if you meant this</p>

<pre><code class="plaintext">(?[ [ \x{BEEF} ] ])</code></pre>

<p>or if you meant this</p>

<pre><code class="plaintext">(?[ [ \x{BE} E F ] ])</code></pre>

<p>You need to add either braces or blanks to disambiguate.</p>

</dd>
<dt id="Using-just-the-first-character-returned-by-\N{}-in-character-class-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Using-just-the-first-character-returned-by-%5CN%7B%7D-in-character-class-in-regex;-marked-by-in-m/%25s/">#</a><a id="Using-just-the-first-character-returned-by-\N{}-in-character-class-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Using"></a><a id="Using-just-the-first-character-returned-by-N-in-character-class-in-regex-marked-by----HERE-in-m-s"></a>Using just the first character returned by \N{} in character class in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp) Named Unicode character escapes <code>(\N{...})</code> may return a multi-character sequence. Even though a character class is supposed to match just one character of input, perl will match the whole thing correctly, except when the class is inverted (<code>[^...]</code>), or the escape is the beginning or final end point of a range. For these, what should happen isn&#39;t clear at all. In these circumstances, Perl discards all but the first character of the returned sequence, which is not likely what you want.</p>

</dd>
<dt id="Using-just-the-single-character-results-returned-by-\p{}-in-(?[...])-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Using-just-the-single-character-results-returned-by-%5Cp%7B%7D-in-(?%5B...%5D)-in-regex;-marked-by-in-m/%25s/">#</a><a id="Using-just-the-single-character-results-returned-by-\p{}-in-(?[...])-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Using1"></a><a id="Using-just-the-single-character-results-returned-by-p-in-...-in-regex-marked-by----HERE-in-m-s"></a>Using just the single character results returned by \p{} in (?[...]) in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp) Extended character classes currently cannot handle operands that evaluate to more than one character. These are removed from the results of the expansion of the <code>\p{}</code>.</p>

<p>This situation can happen, for example, in</p>

<pre><code class="plaintext">(?[ \p{name=/KATAKANA/} ])</code></pre>

<p>&quot;KATAKANA LETTER AINU P&quot; is a legal Unicode name (technically a &quot;named sequence&quot;), but it is actually two characters. The above expression with match only the Unicode names containing KATAKANA that represent single characters.</p>

</dd>
<dt id="Using-/u-for-&#39;%s&#39;-instead-of-/%s-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Using-/u-for-&#39;%25s&#39;-instead-of-/%25s-in-regex;-marked-by-in-m/%25s/">#</a><a id="Using-/u-for-&#39;%s&#39;-instead-of-/%s-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Using2"></a><a id="Using-u-for-s-instead-of-s-in-regex-marked-by----HERE-in-m-s"></a>Using /u for &#39;%s&#39; instead of /%s in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(W regexp) You used a Unicode boundary (<code>\b{...}</code> or <code>\B{...}</code>) in a portion of a regular expression where the character set modifiers <code>/a</code> or <code>/aa</code> are in effect. These two modifiers indicate an ASCII interpretation, and this doesn&#39;t make sense for a Unicode definition. The generated regular expression will compile so that the boundary uses all of Unicode. No other portion of the regular expression is affected.</p>

</dd>
<dt id="Using-!~-with-%s-doesn&#39;t-make-sense"><a class="permalink" href="perldiag.html#Using-!~-with-%25s-doesn&#39;t-make-sense">#</a><a id="Using3"></a><a id="Using-with-s-doesnt-make-sense"></a>Using !~ with %s doesn&#39;t make sense</dt>
<dd>

<p>(F) Using the <code>!~</code> operator with <code>s///r</code>, <code>tr///r</code> or <code>y///r</code> is currently reserved for future use, as the exact behavior has not been decided. (Simply returning the boolean opposite of the modified string is usually not particularly useful.)</p>

</dd>
<dt id="UTF-16-surrogate-U+%X"><a class="permalink" href="perldiag.html#UTF-16-surrogate-U+%25X">#</a><a id="UTF"></a><a id="UTF-16-surrogate-U-X"></a>UTF-16 surrogate U+%X</dt>
<dd>

<p>(S surrogate) You had a UTF-16 surrogate in a context where they are not considered acceptable. These code points, between U+D800 and U+DFFF (inclusive), are used by Unicode only for UTF-16. However, Perl internally allows all unsigned integer code points (up to the size limit available on your platform), including surrogates. But these can cause problems when being input or output, which is likely where this message came from. If you really really know what you are doing you can turn off this warning by <code>no warnings &#39;surrogate&#39;;</code>.</p>

</dd>
<dt id="Value-of-%s-can-be-&quot;0&quot;;-test-with-defined()"><a class="permalink" href="perldiag.html#Value-of-%25s-can-be-%220%22;-test-with-defined()">#</a><a id="Value"></a><a id="Value-of-s-can-be-0-test-with-defined"></a>Value of %s can be &quot;0&quot;; test with defined()</dt>
<dd>

<p>(W misc) In a conditional expression, you used &lt;HANDLE&gt;, &lt;*&gt; (glob), <code>each()</code>, or <code>readdir()</code> as a boolean value. Each of these constructs can return a value of &quot;0&quot;; that would make the conditional expression false, which is probably not what you intended. When using these constructs in conditional expressions, test their values with the <code>defined</code> operator.</p>

</dd>
<dt id="Value-of-CLI-symbol-&quot;%s&quot;-too-long"><a class="permalink" href="perldiag.html#Value-of-CLI-symbol-%22%25s%22-too-long">#</a><a id="Value1"></a><a id="Value-of-CLI-symbol-s-too-long"></a>Value of CLI symbol &quot;%s&quot; too long</dt>
<dd>

<p>(W misc) A warning peculiar to VMS. Perl tried to read the value of an %ENV element from a CLI symbol table, and found a resultant string longer than 1024 characters. The return value has been truncated to 1024 characters.</p>

</dd>
<dt id="Variable-&quot;%s&quot;-is-not-available"><a class="permalink" href="perldiag.html#Variable-%22%25s%22-is-not-available">#</a><a id="Variable"></a><a id="Variable-s-is-not-available"></a>Variable &quot;%s&quot; is not available</dt>
<dd>

<p>(W closure) During compilation, an inner named subroutine or eval is attempting to capture an outer lexical that is not currently available. This can happen for one of two reasons. First, the outer lexical may be declared in an outer anonymous subroutine that has not yet been created. (Remember that named subs are created at compile time, while anonymous subs are created at run-time.) For example,</p>

<pre><code>sub { my $a; sub f { $a } }</code></pre>

<p>At the time that f is created, it can&#39;t capture the current value of $a, since the anonymous subroutine hasn&#39;t been created yet. Conversely, the following won&#39;t give a warning since the anonymous subroutine has by now been created and is live:</p>

<pre><code>sub { my $a; eval &#39;sub f { $a }&#39; }-&gt;();</code></pre>

<p>The second situation is caused by an eval accessing a variable that has gone out of scope, for example,</p>

<pre><code>    sub f {
	my $a;
	sub { eval &#39;$a&#39; }
    }
    f()-&gt;();</code></pre>

<p>Here, when the &#39;$a&#39; in the eval is being compiled, f() is not currently being executed, so its $a is not available for capture.</p>

</dd>
<dt id="Variable-&quot;%s&quot;-is-not-imported%s"><a class="permalink" href="perldiag.html#Variable-%22%25s%22-is-not-imported%25s">#</a><a id="Variable1"></a><a id="Variable-s-is-not-imported-s"></a>Variable &quot;%s&quot; is not imported%s</dt>
<dd>

<p>(S misc) With &quot;use strict&quot; in effect, you referred to a global variable that you apparently thought was imported from another module, because something else of the same name (usually a subroutine) is exported by that module. It usually means you put the wrong funny character on the front of your variable. It is also possible you used an &quot;our&quot; variable whose scope has ended.</p>

</dd>
<dt id="Variable-length-lookbehind-not-implemented-in-regex-m/%s/"><a class="permalink" href="perldiag.html#Variable-length-lookbehind-not-implemented-in-regex-m/%25s/">#</a><a id="Variable2"></a><a id="Variable-length-lookbehind-not-implemented-in-regex-m-s"></a>Variable length lookbehind not implemented in regex m/%s/</dt>
<dd>

<p>(F) <b>This message no longer should be raised as of Perl 5.30.</b> It is retained in this document as a convenience for people using an earlier Perl version.</p>

<p>In Perl 5.30 and earlier, lookbehind is allowed only for subexpressions whose length is fixed and known at compile time. For positive lookbehind, you can use the <code>\K</code> regex construct as a way to get the equivalent functionality. See <a href="perlre.html#%5CK">(?&lt;=pattern) and \K in perlre</a>.</p>

<p>Starting in Perl 5.18, there are non-obvious Unicode rules under <code>/i</code> that can match variably, but which you might not think could. For example, the substring <code>&quot;ss&quot;</code> can match the single character LATIN SMALL LETTER SHARP S. Here&#39;s a complete list of the current ones affecting ASCII characters:</p>

<pre><code class="plaintext"> ASCII
sequence      Matches single letter under /i
  FF          U+FB00 LATIN SMALL LIGATURE FF
  FFI         U+FB03 LATIN SMALL LIGATURE FFI
  FFL         U+FB04 LATIN SMALL LIGATURE FFL
  FI          U+FB01 LATIN SMALL LIGATURE FI
  FL          U+FB02 LATIN SMALL LIGATURE FL
  SS          U+00DF LATIN SMALL LETTER SHARP S
              U+1E9E LATIN CAPITAL LETTER SHARP S
  ST          U+FB06 LATIN SMALL LIGATURE ST
              U+FB05 LATIN SMALL LIGATURE LONG S T</code></pre>

<p>This list is subject to change, but is quite unlikely to. Each ASCII sequence can be any combination of upper- and lowercase.</p>

<p>You can avoid this by using a bracketed character class in the lookbehind assertion, like</p>

<pre><code class="plaintext">(?&lt;![sS]t)
(?&lt;![fF]f[iI])</code></pre>

<p>This fools Perl into not matching the ligatures.</p>

<p>Another option for Perls starting with 5.16, if you only care about ASCII matches, is to add the <code>/aa</code> modifier to the regex. This will exclude all these non-obvious matches, thus getting rid of this message. You can also say</p>

<pre><code>use if $] ge 5.016, re =&gt; &#39;/aa&#39;;</code></pre>

<p>to apply <code>/aa</code> to all regular expressions compiled within its scope. See <a href="re.html">re</a>.</p>

</dd>
<dt id="&quot;%s&quot;-variable-%s-masks-earlier-declaration-in-same-%s"><a class="permalink" href="perldiag.html#%22%25s%22-variable-%25s-masks-earlier-declaration-in-same-%25s">#</a><a id="s-variable-s-masks-earlier-declaration-in-same-s"></a>&quot;%s&quot; variable %s masks earlier declaration in same %s</dt>
<dd>

<p>(W shadow) A &quot;my&quot;, &quot;our&quot; or &quot;state&quot; variable has been redeclared in the current scope or statement, effectively eliminating all access to the previous instance. This is almost always a typographical error. Note that the earlier variable will still exist until the end of the scope or until all closure references to it are destroyed.</p>

</dd>
<dt id="Variable-syntax"><a class="permalink" href="perldiag.html#Variable-syntax">#</a><a id="Variable3"></a>Variable syntax</dt>
<dd>

<p>(A) You&#39;ve accidentally run your script through <b>csh</b> instead of Perl. Check the #! line, or manually feed your script into Perl yourself.</p>

</dd>
<dt id="Variable-&quot;%s&quot;-will-not-stay-shared"><a class="permalink" href="perldiag.html#Variable-%22%25s%22-will-not-stay-shared">#</a><a id="Variable4"></a><a id="Variable-s-will-not-stay-shared"></a>Variable &quot;%s&quot; will not stay shared</dt>
<dd>

<p>(W closure) An inner (nested) <i>named</i> subroutine is referencing a lexical variable defined in an outer named subroutine.</p>

<p>When the inner subroutine is called, it will see the value of the outer subroutine&#39;s variable as it was before and during the *first* call to the outer subroutine; in this case, after the first call to the outer subroutine is complete, the inner and outer subroutines will no longer share a common value for the variable. In other words, the variable will no longer be shared.</p>

<p>This problem can usually be solved by making the inner subroutine anonymous, using the <code>sub {}</code> syntax. When inner anonymous subs that reference variables in outer subroutines are created, they are automatically rebound to the current values of such variables.</p>

</dd>
<dt id="vector-argument-not-supported-with-alpha-versions"><a class="permalink" href="perldiag.html#vector-argument-not-supported-with-alpha-versions">#</a><a id="vector"></a>vector argument not supported with alpha versions</dt>
<dd>

<p>(S printf) The %vd (s)printf format does not support version objects with alpha parts.</p>

</dd>
<dt id="Verb-pattern-&#39;%s&#39;-has-a-mandatory-argument-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Verb-pattern-&#39;%25s&#39;-has-a-mandatory-argument-in-regex;-marked-by-in-m/%25s/">#</a><a id="Verb-pattern-&#39;%s&#39;-has-a-mandatory-argument-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Verb"></a><a id="Verb-pattern-s-has-a-mandatory-argument-in-regex-marked-by----HERE-in-m-s"></a>Verb pattern &#39;%s&#39; has a mandatory argument in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You used a verb pattern that requires an argument. Supply an argument or check that you are using the right verb.</p>

</dd>
<dt id="Verb-pattern-&#39;%s&#39;-may-not-have-an-argument-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Verb-pattern-&#39;%25s&#39;-may-not-have-an-argument-in-regex;-marked-by-in-m/%25s/">#</a><a id="Verb-pattern-&#39;%s&#39;-may-not-have-an-argument-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Verb1"></a><a id="Verb-pattern-s-may-not-have-an-argument-in-regex-marked-by----HERE-in-m-s"></a>Verb pattern &#39;%s&#39; may not have an argument in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) You used a verb pattern that is not allowed an argument. Remove the argument or check that you are using the right verb.</p>

</dd>
<dt id="Version-control-conflict-marker"><a class="permalink" href="perldiag.html#Version-control-conflict-marker">#</a><a id="Version"></a>Version control conflict marker</dt>
<dd>

<p>(F) The parser found a line starting with <code>&lt;&lt;&lt;&lt;&lt;&lt;&lt;</code>, <code>&gt;&gt;&gt;&gt;&gt;&gt;&gt;</code>, or <code>=======</code>. These may be left by a version control system to mark conflicts after a failed merge operation.</p>

</dd>
<dt id="Version-number-must-be-a-constant-number"><a class="permalink" href="perldiag.html#Version-number-must-be-a-constant-number">#</a><a id="Version1"></a>Version number must be a constant number</dt>
<dd>

<p>(P) The attempt to translate a <code>use Module n.n LIST</code> statement into its equivalent <code>BEGIN</code> block found an internal inconsistency with the version number.</p>

</dd>
<dt id="Version-string-&#39;%s&#39;-contains-invalid-data;-ignoring:-&#39;%s&#39;"><a class="permalink" href="perldiag.html#Version-string-&#39;%25s&#39;-contains-invalid-data;-ignoring:-&#39;%25s&#39;">#</a><a id="Version2"></a><a id="Version-string-s-contains-invalid-data-ignoring:-s"></a>Version string &#39;%s&#39; contains invalid data; ignoring: &#39;%s&#39;</dt>
<dd>

<p>(W misc) The version string contains invalid characters at the end, which are being ignored.</p>

</dd>
<dt id="Warning:-something&#39;s-wrong"><a class="permalink" href="perldiag.html#Warning:-something&#39;s-wrong">#</a><a id="Warning"></a><a id="Warning:-somethings-wrong"></a>Warning: something&#39;s wrong</dt>
<dd>

<p>(W) You passed warn() an empty string (the equivalent of <code>warn &quot;&quot;</code>) or you called it with no args and <code>$@</code> was empty.</p>

</dd>
<dt id="Warning:-unable-to-close-filehandle-%s-properly"><a class="permalink" href="perldiag.html#Warning:-unable-to-close-filehandle-%25s-properly">#</a><a id="Warning1"></a><a id="Warning:-unable-to-close-filehandle-s-properly"></a>Warning: unable to close filehandle %s properly</dt>
<dd>

<p>(S) The implicit close() done by an open() got an error indication on the close(). This usually indicates your file system ran out of disk space.</p>

</dd>
<dt id="Warning:-unable-to-close-filehandle-properly:-%s"><a class="permalink" href="perldiag.html#Warning:-unable-to-close-filehandle-properly:-%25s">#</a><a id="Warning2"></a><a id="Warning:-unable-to-close-filehandle-properly:-s"></a>Warning: unable to close filehandle properly: %s</dt>
<dd>

</dd>
<dt id="Warning:-unable-to-close-filehandle-%s-properly:-%s"><a class="permalink" href="perldiag.html#Warning:-unable-to-close-filehandle-%25s-properly:-%25s">#</a><a id="Warning3"></a><a id="Warning:-unable-to-close-filehandle-s-properly:-s"></a>Warning: unable to close filehandle %s properly: %s</dt>
<dd>

<p>(S io) There were errors during the implicit close() done on a filehandle when its reference count reached zero while it was still open, e.g.:</p>

<pre><code>{
    open my $fh, &#39;&gt;&#39;, $file  or die &quot;open: &#39;$file&#39;: $!\n&quot;;
    print $fh $data or die &quot;print: $!&quot;;
} # implicit close here</code></pre>

<p>Because various errors may only be detected by close() (e.g. buffering could allow the <code>print</code> in this example to return true even when the disk is full), it is dangerous to ignore its result. So when it happens implicitly, perl will signal errors by warning.</p>

<p><b>Prior to version 5.22.0, perl ignored such errors</b>, so the common idiom shown above was liable to cause <b>silent data loss</b>.</p>

</dd>
<dt id="Warning:-Use-of-&quot;%s&quot;-without-parentheses-is-ambiguous"><a class="permalink" href="perldiag.html#Warning:-Use-of-%22%25s%22-without-parentheses-is-ambiguous">#</a><a id="Warning4"></a><a id="Warning:-Use-of-s-without-parentheses-is-ambiguous"></a>Warning: Use of &quot;%s&quot; without parentheses is ambiguous</dt>
<dd>

<p>(S ambiguous) You wrote a unary operator followed by something that looks like a binary operator that could also have been interpreted as a term or unary operator. For instance, if you know that the rand function has a default argument of 1.0, and you write</p>

<pre><code>rand + 5;</code></pre>

<p>you may THINK you wrote the same thing as</p>

<pre><code>rand() + 5;</code></pre>

<p>but in actual fact, you got</p>

<pre><code>rand(+5);</code></pre>

<p>So put in parentheses to say what you really mean.</p>

</dd>
<dt id="when-is-experimental"><a class="permalink" href="perldiag.html#when-is-experimental">#</a><a id="when"></a>when is experimental</dt>
<dd>

<p>(S experimental::smartmatch) <code>when</code> depends on smartmatch, which is experimental. Additionally, it has several special cases that may not be immediately obvious, and their behavior may change or even be removed in any future release of perl. See the explanation under <a href="perlsyn.html#Experimental-Details-on-given-and-when">&quot;Experimental Details on given and when&quot; in perlsyn</a>.</p>

</dd>
<dt id="Wide-character-in-%s"><a class="permalink" href="perldiag.html#Wide-character-in-%25s">#</a><a id="Wide"></a><a id="Wide-character-in-s"></a>Wide character in %s</dt>
<dd>

<p>(S utf8) Perl met a wide character (ordinal &gt;255) when it wasn&#39;t expecting one. This warning is by default on for I/O (like print).</p>

<p>If this warning does come from I/O, the easiest way to quiet it is simply to add the <code>:utf8</code> layer, <i>e.g.</i>, <span style="white-space: nowrap;"><code>binmode STDOUT, &#39;:utf8&#39;</code></span>. Another way to turn off the warning is to add <span style="white-space: nowrap;"><code>no warnings &#39;utf8&#39;;</code></span> but that is often closer to cheating. In general, you are supposed to explicitly mark the filehandle with an encoding, see <a href="open.html">open</a> and <a href="perlfunc.html#binmode">&quot;binmode&quot; in perlfunc</a>.</p>

<p>If the warning comes from other than I/O, this diagnostic probably indicates that incorrect results are being obtained. You should examine your code to determine how a wide character is getting to an operation that doesn&#39;t handle them.</p>

</dd>
<dt id="Wide-character-(U+%X)-in-%s"><a class="permalink" href="perldiag.html#Wide-character-(U+%25X)-in-%25s">#</a><a id="Wide1"></a><a id="Wide-character-U-X-in-s"></a>Wide character (U+%X) in %s</dt>
<dd>

<p>(W locale) While in a single-byte locale (<i>i.e.</i>, a non-UTF-8 one), a multi-byte character was encountered. Perl considers this character to be the specified Unicode code point. Combining non-UTF-8 locales and Unicode is dangerous. Almost certainly some characters will have two different representations. For example, in the ISO 8859-7 (Greek) locale, the code point 0xC3 represents a Capital Gamma. But so also does 0x393. This will make string comparisons unreliable.</p>

<p>You likely need to figure out how this multi-byte character got mixed up with your single-byte locale (or perhaps you thought you had a UTF-8 locale, but Perl disagrees).</p>

</dd>
<dt id="Within-[]-length-&#39;%c&#39;-not-allowed"><a class="permalink" href="perldiag.html#Within-%5B%5D-length-&#39;%25c&#39;-not-allowed">#</a><a id="Within"></a><a id="Within--length-c-not-allowed"></a>Within []-length &#39;%c&#39; not allowed</dt>
<dd>

<p>(F) The count in the (un)pack template may be replaced by <code>[TEMPLATE]</code> only if <code>TEMPLATE</code> always matches the same amount of packed bytes that can be determined from the template alone. This is not possible if it contains any of the codes @, /, U, u, w or a *-length. Redesign the template.</p>

</dd>
<dt id="While-trying-to-resolve-method-call-%s-&gt;%s()-can-not-locate-package-&quot;%s&quot;-yet-it-is-mentioned-in-@%s::ISA-(perhaps-you-forgot-to-load-&quot;%s&quot;?)"><a class="permalink" href="perldiag.html#While-trying-to-resolve-method-call-%25s-%3E%25s()-can-not-locate-package-%22%25s%22-yet-it-is-mentioned-in-@%25s::ISA-(perhaps-you-forgot-to-load-%22%25s%22?)">#</a><a id="While"></a><a id="While-trying-to-resolve-method-call-s--s-can-not-locate-package-s-yet-it-is-mentioned-in-s::ISA-perhaps-you-forgot-to-load-s"></a>While trying to resolve method call %s-&gt;%s() can not locate package &quot;%s&quot; yet it is mentioned in @%s::ISA (perhaps you forgot to load &quot;%s&quot;?)</dt>
<dd>

<p>(W syntax) It is possible that the <code>@ISA</code> contains a misspelled or never loaded package name, which can result in perl choosing an unexpected parent class&#39;s method to resolve the method call. If this is deliberate you can do something like</p>

<pre><code>@Missing::Package::ISA = ();</code></pre>

<p>to silence the warnings, otherwise you should correct the package name, or ensure that the package is loaded prior to the method call.</p>

</dd>
<dt id="%s()-with-negative-argument"><a class="permalink" href="perldiag.html#%25s()-with-negative-argument">#</a><a id="s-with-negative-argument"></a>%s() with negative argument</dt>
<dd>

<p>(S misc) Certain operations make no sense with negative arguments. Warning is given and the operation is not done.</p>

</dd>
<dt id="write()-on-closed-filehandle-%s"><a class="permalink" href="perldiag.html#write()-on-closed-filehandle-%25s">#</a><a id="write"></a><a id="write-on-closed-filehandle-s"></a>write() on closed filehandle %s</dt>
<dd>

<p>(W closed) The filehandle you&#39;re writing to got itself closed sometime before now. Check your control flow.</p>

</dd>
<dt id="%s-&quot;\x%X&quot;-does-not-map-to-Unicode"><a class="permalink" href="perldiag.html#%25s-%22%5Cx%25X%22-does-not-map-to-Unicode">#</a><a id="s-x-X-does-not-map-to-Unicode"></a>%s &quot;\x%X&quot; does not map to Unicode</dt>
<dd>

<p>(S utf8) When reading in different encodings, Perl tries to map everything into Unicode characters. The bytes you read in are not legal in this encoding. For example</p>

<pre><code class="plaintext">utf8 &quot;\xE4&quot; does not map to Unicode</code></pre>

<p>if you try to read in the a-diaereses Latin-1 as UTF-8.</p>

</dd>
<dt id="&#39;X&#39;-outside-of-string"><a class="permalink" href="perldiag.html#&#39;X&#39;-outside-of-string">#</a><a id="X-outside-of-string"></a>&#39;X&#39; outside of string</dt>
<dd>

<p>(F) You had a (un)pack template that specified a relative position before the beginning of the string being (un)packed. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="&#39;x&#39;-outside-of-string-in-unpack"><a class="permalink" href="perldiag.html#&#39;x&#39;-outside-of-string-in-unpack">#</a><a id="x-outside-of-string-in-unpack"></a>&#39;x&#39; outside of string in unpack</dt>
<dd>

<p>(F) You had a pack template that specified a relative position after the end of the string being unpacked. See <a href="perlfunc.html#pack">&quot;pack&quot; in perlfunc</a>.</p>

</dd>
<dt id="YOU-HAVEN&#39;T-DISABLED-SET-ID-SCRIPTS-IN-THE-KERNEL-YET!"><a class="permalink" href="perldiag.html#YOU-HAVEN&#39;T-DISABLED-SET-ID-SCRIPTS-IN-THE-KERNEL-YET!">#</a><a id="YOU"></a><a id="YOU-HAVENT-DISABLED-SET-ID-SCRIPTS-IN-THE-KERNEL-YET"></a>YOU HAVEN&#39;T DISABLED SET-ID SCRIPTS IN THE KERNEL YET!</dt>
<dd>

<p>(F) And you probably never will, because you probably don&#39;t have the sources to your kernel, and your vendor probably doesn&#39;t give a rip about what you want. There is a vulnerability anywhere that you have a set-id script, and to close it you need to remove the set-id bit from the script that you&#39;re attempting to run. To actually run the script set-id, your best bet is to put a set-id C wrapper around your script.</p>

</dd>
<dt id="You-need-to-quote-&quot;%s&quot;"><a class="permalink" href="perldiag.html#You-need-to-quote-%22%25s%22">#</a><a id="You"></a><a id="You-need-to-quote-s"></a>You need to quote &quot;%s&quot;</dt>
<dd>

<p>(W syntax) You assigned a bareword as a signal handler name. Unfortunately, you already have a subroutine of that name declared, which means that Perl 5 will try to call the subroutine when the assignment is executed, which is probably not what you want. (If it IS what you want, put an &amp; in front.)</p>

</dd>
<dt id="Your-random-numbers-are-not-that-random"><a class="permalink" href="perldiag.html#Your-random-numbers-are-not-that-random">#</a><a id="Your"></a>Your random numbers are not that random</dt>
<dd>

<p>(F) When trying to initialize the random seed for hashes, Perl could not get any randomness out of your system. This usually indicates Something Very Wrong.</p>

</dd>
<dt id="Zero-length-\N{}-in-regex;-marked-by-in-m/%s/"><a class="permalink" href="perldiag.html#Zero-length-%5CN%7B%7D-in-regex;-marked-by-in-m/%25s/">#</a><a id="Zero-length-\N{}-in-regex;-marked-by-&lt;-HERE-in-m/%s/"></a><a id="Zero"></a><a id="Zero-length-N-in-regex-marked-by----HERE-in-m-s"></a>Zero length \N{} in regex; marked by <span style="white-space: nowrap;">&lt;-- HERE</span> in m/%s/</dt>
<dd>

<p>(F) Named Unicode character escapes (<code>\N{...}</code>) may return a zero-length sequence. Such an escape was used in an extended character class, i.e. <code>(?[...])</code>, or under <code>use re &#39;strict&#39;</code>, which is not permitted. Check that the correct escape has been used, and the correct charnames handler is in scope. The <span style="white-space: nowrap;">&lt;-- HERE</span> shows whereabouts in the regular expression the problem was discovered.</p>

</dd>
</dl>

<h1 id="SEE-ALSO"><a class="permalink" href="perldiag.html#SEE-ALSO">#</a><a id="SEE"></a>SEE ALSO</h1>

<p><a href="warnings.html">warnings</a>, <a href="diagnostics.html">diagnostics</a>.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
